From 259e9e4fc60e15f223b7adc9bb134bea99a5d286 Mon Sep 17 00:00:00 2001 From: Gavin Liu Date: Mon, 16 Sep 2019 18:26:37 +0800 Subject: [PATCH] imxrt:board: Add LPUART3 item for imxrt1052-nxp-evk Add LPUART3 item in imxrt1052-nxp-evk Kconfig file to support Arduino UART interface. Signed-off-by: Gavin Liu --- bsp/imxrt/imxrt1052-nxp-evk/board/Kconfig | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/bsp/imxrt/imxrt1052-nxp-evk/board/Kconfig b/bsp/imxrt/imxrt1052-nxp-evk/board/Kconfig index 05ee786996..d472ca9d71 100644 --- a/bsp/imxrt/imxrt1052-nxp-evk/board/Kconfig +++ b/bsp/imxrt/imxrt1052-nxp-evk/board/Kconfig @@ -56,6 +56,34 @@ menu "On-chip Peripheral Drivers" depends on BSP_LPUART1_TX_USING_DMA int "Set LPUART1 TX DMA channel (0-32)" default 1 + + config BSP_USING_LPUART3 + bool "Enable LPUART3" + default n + + config BSP_LPUART3_RX_USING_DMA + bool "Enable LPUART3 RX DMA" + depends on BSP_USING_LPUART3 + select BSP_USING_DMA + select RT_SERIAL_USING_DMA + default n + + config BSP_LPUART3_RX_DMA_CHANNEL + depends on BSP_LPUART3_RX_USING_DMA + int "Set LPUART3 RX DMA channel (0-32)" + default 0 + + config BSP_LPUART3_TX_USING_DMA + bool "Enable LPUART3 TX DMA" + depends on BSP_USING_LPUART3 + select BSP_USING_DMA + select RT_SERIAL_USING_DMA + default n + + config BSP_LPUART3_TX_DMA_CHANNEL + depends on BSP_LPUART3_TX_USING_DMA + int "Set LPUART3 TX DMA channel (0-32)" + default 1 endif endmenu