App_pc.h 697 B

12345678910111213141516171819202122232425
  1. /**
  2. ******************************************************************************
  3. * @file App_pc.h
  4. * @brief PC 上位机通信任务接口 (App 应用层)
  5. *
  6. * @note 上位机经 USART1(115200 8N1) 下发 0x01 设置目标温度 / 0x02 请求
  7. * 24 路温度; 本任务解析应答帧并回 0x81 / 0x82。协议见 Com_pc_protocol.h。
  8. ******************************************************************************
  9. */
  10. #ifndef __APP_PC_H
  11. #define __APP_PC_H
  12. #include "FreeRTOS.h"
  13. #include "task.h"
  14. extern TaskHandle_t xPCTaskHandle;
  15. /**
  16. * @brief 创建上位机通信任务
  17. * @param 无
  18. * @return 无
  19. */
  20. void App_pc_task_create(void);
  21. #endif /* __APP_PC_H */