int main(void){ vola
tile uint32_t u32InitCount; SYS_Init(); /* Init UART0 for printf */ UART0_Init(); PWM_Init(); Timer_Init(); /*允许时钟输出*/ CLK_EnableCKO( CLK_CLKSEL2_FRQDIV_S_HXT, 1, 1); PWM_Start(PWMA,1); u32InitCount = g_au32TMRINTCount[0] = 0; TIMER_Start(TIMER0); TIMER_Start(TIMER3); printf("*** TEST***\n\n");#if 1 while(g_au32TMRINTCount[0] <= 10) { if(g_au32TMRINTCount[0] != u32InitCount) { printf("[%2d]-%d\n\n", g_au32TMRINTCount[0], TIMER_GetCaptureData(TIMER0)); u32InitCount = g_au32TMRINTCount[0]; } }#endif /* Stop Timer0, Timer1 and Timer3 counting */ TIMER_Close(TIMER0); // TIMER_Close(TIMER1); TIMER_Close(TIMER3); printf("*** PASS ***\n\n"); while(1);}