12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #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 "PressureSensor.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();
- PressureSensor_Init();
- ADCSample_Init();
-
- Timer1_Init();
-
- Task_Init();
-
- while (1)
- {
- Watchdog_Feed();
- Task_Handle();
- }
-
- }
|