From 39822ef5a14d00ed0e57c077b33660b3f199105b Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 19 Dec 2022 08:07:18 -0800 Subject: [PATCH] nxp_mr-canhubk:lpuart0 use Serial HW flow control --- boards/nxp/mr-canhubk3/nuttx-config/include/board.h | 2 +- boards/nxp/mr-canhubk3/nuttx-config/nsh/defconfig | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/boards/nxp/mr-canhubk3/nuttx-config/include/board.h b/boards/nxp/mr-canhubk3/nuttx-config/include/board.h index 1a9c8448e94..04d0478528c 100644 --- a/boards/nxp/mr-canhubk3/nuttx-config/include/board.h +++ b/boards/nxp/mr-canhubk3/nuttx-config/include/board.h @@ -141,7 +141,7 @@ /* LPUART0 P2 UART (with flow control) connector */ #define PIN_LPUART0_CTS PIN_LPUART0_CTS_1 /* PTA0 */ -#define PIN_LPUART0_RTS PIN_LPUART0_RTS_1 /* PTA1 */ +#define PIN_LPUART0_RTS (PIN_PTA1 | GPIO_OUTPUT) /* PIN_LPUART0_RTS_1 PTA1 */ #define PIN_LPUART0_RX (PIN_LPUART0_RX_1 | PIN_INPUT_PULLUP) /* PTA2 */ #define PIN_LPUART0_TX PIN_LPUART0_TX_1 /* PTA3 */ diff --git a/boards/nxp/mr-canhubk3/nuttx-config/nsh/defconfig b/boards/nxp/mr-canhubk3/nuttx-config/nsh/defconfig index f1a61b3b072..35a89ebd0d1 100644 --- a/boards/nxp/mr-canhubk3/nuttx-config/nsh/defconfig +++ b/boards/nxp/mr-canhubk3/nuttx-config/nsh/defconfig @@ -118,6 +118,9 @@ CONFIG_LIBC_MAX_EXITFUNS=1 CONFIG_LIBC_STRERROR=y CONFIG_LPI2C0_DMA=y CONFIG_LPI2C1_DMA=y +CONFIG_LPUART0_IFLOWCONTROL=y +CONFIG_LPUART0_OFLOWCONTROL=y +CONFIG_LPUART0_RXBUFSIZE=640 CONFIG_LPUART0_RXDMA=y CONFIG_LPUART0_TXDMA=y CONFIG_LPUART13_RXDMA=y @@ -251,6 +254,7 @@ CONFIG_SCHED_LPWORKPRIORITY=50 CONFIG_SCHED_LPWORKSTACKSIZE=1768 CONFIG_SCHED_WAITPID=y CONFIG_SEM_PREALLOCHOLDERS=32 +CONFIG_SERIAL_IFLOWCONTROL_WATERMARKS=y CONFIG_SERIAL_TERMIOS=y CONFIG_SIG_DEFAULT=y CONFIG_SIG_SIGALRM_ACTION=y