#include "ac780x.h" #include "timer.h" #include "gpio.h" #include "cfg.h" #include "IAP.h" #include "process.h" #include "main_task.h" #include "watchdog.h" /*! * @brief entry * * @param[in] none * @return none */ int main(void) { #ifndef IS_BOOTLOADER __ASM("CPSIE I");///使能全局中断 SCB->VTOR = APP1_ADDRESS; ///<重映射向量表 #endif InitDelay(); InitDebug(); Config_Init(); Watchdog_Init(); #ifdef IS_BOOTLOADER Start_BootLoader(); #endif GPIO_PortInit(); IAP_Init(); Process_Init(); TIMER_PrdInit(); Task_Init(); printf("AirControlBox booted \r\n"); while (1) { Watchdog_Feed(); Task_Handle(); } }