main.c 365 B

12345678910111213141516171819202122232425
  1. #include "main.h"
  2. #include "hal_dfu.h"
  3. extern void PRE_Init(void);
  4. extern void USR_Init(void);
  5. extern void USR_Process(void);
  6. int main(void)
  7. {
  8. #if BLE_DFU_ENANBLE
  9. hal_dfu_init();
  10. #endif
  11. PRE_Init(); //Óû§³õʼ»¯
  12. #if BLE_DFU_ENANBLE
  13. hal_dfu_server_init();
  14. #endif
  15. USR_Init(); //Óû§³õʼ»¯
  16. while (1)
  17. {
  18. USR_Process();
  19. }
  20. }