main.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef __main_h__
  2. #define __main_h__
  3. /**************************** 系统头文件 ********************************/
  4. #include <stdbool.h>
  5. #include <stdint.h>
  6. #include <string.h>
  7. #include "sdk_common.h"
  8. #include "nrf.h"
  9. #include "nrf_esb.h"
  10. #include "nrf_error.h"
  11. #include "nrf_esb_error_codes.h"
  12. #include "nrf_delay.h"
  13. #include "nrf_gpio.h"
  14. #include "boards.h"
  15. #include "nrf_delay.h"
  16. #include "nrf_drv_timer.h"
  17. #include "app_util.h"
  18. #include "twi_master.h"
  19. #include "nrf_log.h"
  20. #include "nrf_log_ctrl.h"
  21. #include "nrf_log_default_backends.h"
  22. #include "app_uart.h"
  23. #if defined (UART_PRESENT)
  24. #include "nrf_uart.h"
  25. #endif
  26. #if defined (UARTE_PRESENT)
  27. #include "nrf_uarte.h"
  28. #endif
  29. #include "nrf_drv_saadc.h"
  30. #include "nrf_temp.h"
  31. /**************************** 自定义头文件 ********************************/
  32. #include "bsp_interface.h"
  33. #include "bsp_protocol.h"
  34. #include "bsp_esb.h"
  35. #include "bsp_uart.h"
  36. #include "bsp_gpio.h"
  37. #include "bsp_time.h"
  38. #include "mpu6050.h"
  39. #include "MSE5611.h"
  40. struct pm_type
  41. {
  42. unsigned char power;//电量
  43. unsigned char inner_temperature;//内部温度
  44. unsigned char pressure[4];//压力
  45. };
  46. struct pm_other_type
  47. {
  48. unsigned char power;//电量
  49. unsigned char inner_temperature;//内部温度
  50. unsigned char pressure[4];//压力
  51. };
  52. extern struct pm_type pm;
  53. extern struct pm_other_type pm_other;
  54. #endif