#ifndef __TASK_H #define __TASK_H #include "includes.h" #include "stm32f2xx.h" #include "radio.h" #include "gateway_message.h" //主要的数据处理线程 #define DATA_TASK_PRIO 8 #define DATA_STK_SIZE 2*1024 extern void data_task(void *pdata); typedef struct _value{ char PowerValue; char TempValue; char ModeValue; char FanValue; char RoomTempValue; }value; void WRITE_MODBUS_DATA(char* buf); extern tRadioDriver *Radio; #endif