123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #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();
- Config_Init();
- Watchdog_Init();
-
-
- #ifdef IS_BOOTLOADER
- Start_BootLoader();
- #endif
-
- GPIO_PortInit();
- IAP_Init();
-
-
- Process_Init();
-
- TIMER_PrdInit();
- Task_Init();
-
-
- while (1)
- {
- Watchdog_Feed();
- Task_Handle();
- }
-
- }
|