From 7fcd8e9afc68eecf5fecc4cb6f9acc4fe76c2796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=94=9F?= Date: Wed, 15 Jun 2022 17:35:56 +0800 Subject: [PATCH] =?UTF-8?q?[bsp][hc32]=E4=BF=AE=E5=A4=8Duart=E4=B8=8D?= =?UTF-8?q?=E9=87=87=E7=94=A8dma=E6=A8=A1=E5=BC=8F=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=8F=90=E7=A4=BA=E5=87=BD=E6=95=B0=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E8=AD=A6=E5=91=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/hc32/libraries/hc32_drivers/drv_usart.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bsp/hc32/libraries/hc32_drivers/drv_usart.c b/bsp/hc32/libraries/hc32_drivers/drv_usart.c index 582bb343d2..a986789198 100644 --- a/bsp/hc32/libraries/hc32_drivers/drv_usart.c +++ b/bsp/hc32/libraries/hc32_drivers/drv_usart.c @@ -507,6 +507,8 @@ static void hc32_uart_rx_timeout(struct rt_serial_device *serial) USART_FuncCmd(uart->config->Instance, (USART_RX_TIMEOUT | USART_INT_RX_TIMEOUT), ENABLE); } +#ifdef RT_SERIAL_USING_DMA + static void hc32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag) { struct hc32_uart *uart; @@ -650,6 +652,8 @@ static void hc32_uart_tc_irq_handler(struct hc32_uart *uart) rt_hw_serial_isr(&uart->serial, RT_SERIAL_EVENT_TX_DMADONE); } } + +#endif /* RT_SERIAL_USING_DMA */ #endif #if defined(BSP_USING_UART1)