123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef __main_h__
- #define __main_h__
- /**************************** 系统头文件 ********************************/
- #include <stdbool.h>
- #include <stdint.h>
- #include <string.h>
- #include "sdk_common.h"
- #include "nrf.h"
- #include "nrf_esb.h"
- #include "nrf_error.h"
- #include "nrf_esb_error_codes.h"
- #include "nrf_delay.h"
- #include "nrf_gpio.h"
- #include "boards.h"
- #include "nrf_delay.h"
- #include "nrf_drv_timer.h"
- #include "app_util.h"
- #include "twi_master.h"
- #include "nrf_log.h"
- #include "nrf_log_ctrl.h"
- #include "nrf_log_default_backends.h"
- #include "app_uart.h"
- #if defined (UART_PRESENT)
- #include "nrf_uart.h"
- #endif
- #if defined (UARTE_PRESENT)
- #include "nrf_uarte.h"
- #endif
- #include "nrf_drv_saadc.h"
- #include "nrf_temp.h"
- /**************************** 自定义头文件 ********************************/
- #include "bsp_interface.h"
- #include "bsp_protocol.h"
- #include "bsp_esb.h"
- #include "bsp_uart.h"
- #include "bsp_gpio.h"
- #include "bsp_time.h"
- #include "mpu6050.h"
- #include "MSE5611.h"
- struct pm_type
- {
- unsigned char power;//电量
- unsigned char inner_temperature;//内部温度
- unsigned char pressure[4];//压力
- };
- struct pm_other_type
- {
- unsigned char power;//电量
- unsigned char inner_temperature;//内部温度
- unsigned char pressure[4];//压力
- };
- extern struct pm_type pm;
- extern struct pm_other_type pm_other;
- #endif
|