#include "bl_comm.h" #include "uart_dev.h" uint8_t rs485_buff[buffLen]={0x00}; void GW485_comm(void) { } void BAT485_comm(void) { } /** * @brief gw485串口接收中断回调函数 * @param * @retval * */ void gw485_RxIt(void) { // uart_device_info *dev = (uart_device_info *)g_gw485_uart2_handle; // if(!RingQueueFull(&dev->uart_ring_queue)) // InRingQueue(&dev->uart_ring_queue, rx_gw485_buf[0]); uint8_t c = 0; c = rx_gw485_buf[0]; uart_device_info *dev = (uart_device_info *)g_gw485_uart2_handle; if(!RingQueueFull(&dev->uart_ring_queue)) InRingQueue(&dev->uart_ring_queue, c); start_gw485Rx_It(); } /** * @brief bat485串口接收中断回调函数 * @param * @retval * */ void bat485_RxIt(void) { uart_device_info *dev = (uart_device_info *)g_bat485_uart3_handle; if(!RingQueueFull(&dev->uart_ring_queue)) InRingQueue(&dev->uart_ring_queue, rx_bat485_buf[0]); start_bat485Rx_It(); }