#ifndef APP_QUEUE_UART_H_
#define APP_QUEUE_UART_H_

#include "pDebug.h"
#include "FreeRTOS.h"
#include "queue.h"

/* 存入队列中的数据格式 */
typedef struct _queueUartSendInfo{
    uint32_t length;    //数据长度
    uint8_t *data;      //数据
} queueUartSendInfo;
#define queueUartSendInfoSize sizeof(queueUartSendInfo)

/* 分时复用485存入队列中的数据格式 */
typedef struct _queueTimeShareSendInfo{
    uint8_t connectPort;   //发送的端口
    uint32_t length;        //数据长度
    uint8_t *data;          //数据
} queueTimeShareSendInfo;
#define queueTimeShareSendInfoSize sizeof(queueTimeShareSendInfo)

extern QueueHandle_t J1_485_Queue;
extern QueueHandle_t J2_485_Queue;
extern QueueHandle_t J3_485_Queue;
extern QueueHandle_t J4_485_Queue;
extern QueueHandle_t J5_0_485_Queue;
extern QueueHandle_t upward_uart_Queue;
extern QueueSetHandle_t uart_Queue;

void uartQueueInit(void);
void uartQueueSend(void);

#endif
