main.c 455 B

123456789101112131415161718192021222324252627282930
  1. #include "main.h"
  2. //#include "bsp_time.h"
  3. #include "hal_ble_client.h"
  4. #include "hal_ble_host.h"
  5. #include "nrf_delay.h"
  6. #include "dfu.h"
  7. extern void PRE_Init(void);
  8. extern void USR_Init(void);
  9. extern void USR_Process(void);
  10. int main(void)
  11. {
  12. #if BLE_DFU_ENANBLE
  13. dfu_init();
  14. #endif
  15. PRE_Init(); //Óû§³õʼ»¯
  16. #if BLE_DFU_ENANBLE
  17. dfu_server_init();
  18. #endif
  19. USR_Init(); //Óû§³õʼ»¯
  20. while (1)
  21. {
  22. USR_Process();
  23. }
  24. }