task.h 592 B

1234567891011121314151617181920
  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. #define GetCurrentTime() OSTimeGet()
  11. extern void data_task(void *pdata);
  12. extern tRadioDriver *Radio;
  13. void write_modbus_data(char* buf);
  14. void send_mqtt(char*buf);
  15. void find_difference(char* data1, char* data2, char* string);
  16. int read_device_data1(DEVICE_PARAMS *current_device,char* buf);
  17. int read_device_data(DEVICE_PARAMS *current_device,char* buf);
  18. void mqtt_to_device(void);
  19. #endif