123456789101112131415161718192021222324252627282930 |
- #include "main.h"
- //#include "bsp_time.h"
- #include "hal_ble_client.h"
- #include "hal_ble_host.h"
- #include "nrf_delay.h"
- #include "dfu.h"
- extern void PRE_Init(void);
- extern void USR_Init(void);
- extern void USR_Process(void);
- int main(void)
- {
- #if BLE_DFU_ENANBLE
- dfu_init();
- #endif
- PRE_Init(); //Óû§³õʼ»¯
- #if BLE_DFU_ENANBLE
- dfu_server_init();
- #endif
- USR_Init(); //Óû§³õʼ»¯
-
- while (1)
- {
- USR_Process();
- }
- }
|