12345678910111213141516171819202122232425 |
- #include "main.h"
- #include "hal_dfu.h"
- extern void PRE_Init(void);
- extern void USR_Init(void);
- extern void USR_Process(void);
-
- int main(void)
- {
- #if BLE_DFU_ENANBLE
- hal_dfu_init();
- #endif
- PRE_Init(); //Óû§³õʼ»¯
- #if BLE_DFU_ENANBLE
- hal_dfu_server_init();
- #endif
- USR_Init(); //Óû§³õʼ»¯
-
- while (1)
- {
- USR_Process();
- }
- }
|