From 9fb1520d0eabf94a74846e876be33114daf83cde Mon Sep 17 00:00:00 2001 From: Jedcheen <50920986+Jedcheen@users.noreply.github.com> Date: Wed, 13 Jan 2021 11:31:03 +0800 Subject: [PATCH] fix imxrt uart2 wrong configure --- bsp/imxrt/libraries/drivers/drv_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/imxrt/libraries/drivers/drv_uart.c b/bsp/imxrt/libraries/drivers/drv_uart.c index d471f29dec..fd5bfd1719 100644 --- a/bsp/imxrt/libraries/drivers/drv_uart.c +++ b/bsp/imxrt/libraries/drivers/drv_uart.c @@ -206,7 +206,7 @@ static void uart_get_dma_config(void) uarts[LPUART2_INDEX].dma_flag |= RT_DEVICE_FLAG_DMA_RX; #endif #ifdef BSP_LPUART2_TX_USING_DMA - static struct dma_tx_config uart2_dma_tx = {.request = kDmaRequestMuxLPUART4Tx, .channel = BSP_LPUART2_TX_DMA_CHANNEL}; + static struct dma_tx_config uart2_dma_tx = {.request = kDmaRequestMuxLPUART2Tx, .channel = BSP_LPUART2_TX_DMA_CHANNEL}; uarts[LPUART2_INDEX].dma_tx = &uart2_dma_tx; uarts[LPUART2_INDEX].dma_flag |= RT_DEVICE_FLAG_DMA_TX; #endif -- GitLab