1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #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"
- #include "Radar.h"
- #include "Imu.h"
- #include "adc.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();
- Task_Init();
-
- ADCSample_Init();
-
- Imu_Init();
- Radar_Init();
-
-
- Timer1_Init();
-
-
- while (1)
- {
- Watchdog_Feed();
- Task_Handle();
- }
-
- }
|