task.h 479 B

12345678910111213141516171819202122232425
  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. uint8_t deviceId[25];
  13. uint8_t PowerValue;
  14. uint8_t TempValue;
  15. uint8_t ModeValue;
  16. uint8_t FanValue;
  17. uint8_t RoomTempValue;
  18. }value;
  19. void WRITE_MODBUS_DATA(char* buf);
  20. extern tRadioDriver *Radio;
  21. #endif