main.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef __main_h__
  2. #define __main_h__
  3. /**************************** 系统头文件 ********************************/
  4. #include <stdio.h>
  5. #include <stdbool.h>
  6. #include <stdint.h>
  7. #include <string.h>
  8. #include <math.h>
  9. #include "sdk_common.h"
  10. #include "app_error.h"
  11. #include "app_uart.h"
  12. #include "ble_db_discovery.h"
  13. #include "app_timer.h"
  14. #include "app_util.h"
  15. #include "bsp_btn_ble.h"
  16. #include "ble.h"
  17. #include "ble_gap.h"
  18. #include "ble_hci.h"
  19. #include "nrf_sdh.h"
  20. #include "nrf_sdh_ble.h"
  21. #include "nrf_sdh_soc.h"
  22. #include "ble_nus_c.h"
  23. #include "nrf_ble_gatt.h"
  24. #include "nrf_pwr_mgmt.h"
  25. #include "nrf_ble_scan.h"
  26. #include "nrf_log.h"
  27. #include "nrf_log_ctrl.h"
  28. #include "nrf_log_default_backends.h"
  29. #include "SEGGER_RTT.h"
  30. #include "nrf_power.h"
  31. #include "peer_manager.h"
  32. #include "peer_manager_handler.h"
  33. /**************************** 自定义头文件 ********************************/
  34. #include "usr_config.h"
  35. void process_motion(int32_t time_stamp, int16_t _acc[3], int16_t _gry[3], int16_t front_mag[3], int16_t back_mag[3], uint8_t _rssi); //__weak 函数 可重新定义
  36. void send_protocol(uint8_t index,uint8_t cmd,uint8_t* p,uint8_t datLen);
  37. void gpio_mt_run(uint32_t tim);
  38. #endif