?? turbo.c
字號:
//============================================================================
// Include
//============================================================================
#include <stdio.h>
#include <cyg/kernel/kapi.h>
#include <cyg/io/pmu/fie702x_pmu.h>
#include "PMUSystem.h"
//============================================================================
// Global Variables
//============================================================================
cyg_io_handle_t pmu_handle, rtc_handle;
int turbo_switch = 0;
int main (void)
{
int err;
err = cyg_io_lookup( "/dev/pmu", &pmu_handle );
if (ENOERR != err)
{
printf("Can't open '%s'\n", "/dev/pmu");
}
while (1)
{
cyg_thread_delay (100);
turbo_switch = 1 - turbo_switch;
API_PMU_do_Turbo(pmu_handle, turbo_switch);
printf("turbo = %d\n", API_PMU_get_Turbo(pmu_handle));
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -