#ifndef __main_h__ #define __main_h__ /**************************** 系统头文件 ********************************/ #include #include #include #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