/** ****************************************************************************** * @file App_cpld.h * @brief CPLD 通信任务 (App 应用层) ****************************************************************************** */ #ifndef __APP_CPLD_H #define __APP_CPLD_H #include #include "FreeRTOS.h" #include "task.h" extern TaskHandle_t xCPLDProcessTaskHandle; /** * @brief 创建 CPLD 通信任务 * @param 无 * @return 无 */ void App_cpld_task_create(void); /** * @brief 查询 CPLD 通讯是否存活 * @note 最近 4s 内收到过任何 CPLD 有效帧 (ACK/SNAPSHOT) 视为正常 * @param 无 * @return 1=通讯正常, 0=未接通/失联 */ uint8_t App_cpld_comm_alive(void); #endif /* __APP_CPLD_H */