[BSP][HC32] drv_usart.c fix macro switch error

This commit is contained in:
sp-cai 2024-03-08 09:15:16 +08:00 committed by Meco Man
parent 5d70f98e4d
commit cddab69d77
1 changed files with 3 additions and 3 deletions

View File

@ -731,9 +731,9 @@ static void hc32_uart_rxto_irq_handler(struct hc32_uart *uart)
}
#endif
#if defined (BSP_UART1_RX_USING_DMA) || defined (BSP_UART2_RX_USING_DMA) || defined (BSP_UART3_RX_USING_DMA) || \
defined (BSP_UART4_RX_USING_DMA) || defined (BSP_UART5_RX_USING_DMA) || defined (BSP_UART6_RX_USING_DMA) || \
defined (BSP_UART7_RX_USING_DMA)
#if defined (BSP_UART1_TX_USING_DMA) || defined (BSP_UART2_TX_USING_DMA) || defined (BSP_UART3_TX_USING_DMA) || \
defined (BSP_UART4_TX_USING_DMA) || defined (BSP_UART5_TX_USING_DMA) || defined (BSP_UART6_TX_USING_DMA) || \
defined (BSP_UART7_TX_USING_DMA)
static void hc32_uart_tc_irq_handler(struct hc32_uart *uart)
{
RT_ASSERT(uart != RT_NULL);