int main(void) { u8 flg = 0; BspInit(); CommonInit(); while(1) { CommonExec(); if (IS_TIMEOUT_1MS(eTim1, 500)) { flg? led_on(0): led_off(0); flg = !flg; } }; }
/******************************************************************************* * Function Name : main * Description : Main program. * Input : None * Output : None * Return : None *******************************************************************************/ int main(void) { u32 i=0; while(1) { i++; if(i>3*MHZ) break; } #ifdef DEBUG debug(); #endif BspInit(); CommonInit(); FLASH_Unlock(); LedOff(LED_5); while (1) { CommonExec(); } }