/** ****************************************************************************** * @file user\os\os_queue.c * @author luhuaishuai * @version v0.1 * @date 2026-1-12 * @brief Briefly describe the function of your function ****************************************************************************** */ /* Includes -------------------------------------------------------------------*/ #include "os_queue.h" #include "task_udp.h" /*-内核对象句柄-队列-*/ QueueHandle_t Air724_Message_Queue = NULL; /* 4G数据接收队列 */ QueueHandle_t RS485_Message_Queue = NULL; /* RS485数据接收队列 */ QueueHandle_t UDP_Message_Queue = NULL; /* UDP数据接收队列 */ /* code --------------------------------------------------------------------------------------------------------*/ void Air724_Message_Queue_Init(void) { Air724_Message_Queue = xQueueCreate(20, UART1_RX_BUFFER_SIZE); if (Air724_Message_Queue == NULL) { printf("Air724_Message_Queue_Init Failed\r\n"); // 创建失败处理 Error_Handler(); } } void RS485_Message_Queue_Init(void) { RS485_Message_Queue = xQueueCreate(5, UART3_RX_BUFFER_SIZE); if (RS485_Message_Queue == NULL) { // 创建失败处理 printf("RS485_Message_Queue_Init error\r\n"); Error_Handler(); } } void UDP_Message_Queue_Init(void) { UDP_Message_Queue = xQueueCreate(20, sizeof(UdpMsg_t)); if (UDP_Message_Queue == NULL) { // 创建失败处理 printf("UDP_Message_Queue_Init Failed\r\n"); Error_Handler(); } }