main - 副本.c 507 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 "app_power.h"
  6. //#include "ble_comm.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. PRE_Init(); //Óû§³õʼ»¯
  13. USR_Init(); //Óû§³õʼ»¯
  14. // PWR_Init();
  15. // SEGGER_RTT_printf(0,"PWR_Init\n");
  16. // slave_init(BLE_Client_Push);
  17. // SEGGER_RTT_printf(0,"slave_init\n");
  18. //// host_init(BLE_Host_Push);
  19. while (1)
  20. {
  21. USR_Process();
  22. }
  23. }