chargeController/APP/businessLogic/Src/bl_comm.c

47 lines
733 B
C

#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]);
}
/**
* @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]);
}