task.h 439 B

123456789101112131415161718192021222324
  1. #ifndef __TASK_H
  2. #define __TASK_H
  3. #include "includes.h"
  4. #include "stm32f2xx.h"
  5. #include "radio.h"
  6. #include "gateway_message.h"
  7. //Ö÷ÒªµÄÊý¾Ý´¦ÀíÏß³Ì
  8. #define DATA_TASK_PRIO 8
  9. #define DATA_STK_SIZE 2*1024
  10. extern void data_task(void *pdata);
  11. typedef struct _value{
  12. char PowerValue;
  13. char TempValue;
  14. char ModeValue;
  15. char FanValue;
  16. char RoomTempValue;
  17. }value;
  18. void WRITE_MODBUS_DATA(char* buf);
  19. extern tRadioDriver *Radio;
  20. #endif