main.c 464 B

1234567891011121314151617181920212223242526272829
  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 "hal_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. hal_dfu_init();
  14. #endif
  15. PRE_Init(); //Óû§³õʼ»¯
  16. #if BLE_DFU_ENANBLE
  17. hal_dfu_server_init();
  18. #endif
  19. USR_Init(); //Óû§³õʼ»¯
  20. while (1)
  21. {
  22. USR_Process();
  23. }
  24. }