From e8aa54e7bb39410cf716ba89ab8e59e538fdf2b1 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 13 Dec 2022 06:18:55 -0800 Subject: [PATCH] nxp_ucans32k146:Use GPIO based RTS (Buffer not character) --- boards/nxp/ucans32k146/nuttx-config/include/board.h | 2 +- boards/nxp/ucans32k146/nuttx-config/nsh/defconfig | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/boards/nxp/ucans32k146/nuttx-config/include/board.h b/boards/nxp/ucans32k146/nuttx-config/include/board.h index 5462c7ccb7..a4a74e1f02 100644 --- a/boards/nxp/ucans32k146/nuttx-config/include/board.h +++ b/boards/nxp/ucans32k146/nuttx-config/include/board.h @@ -136,7 +136,7 @@ */ #define PIN_LPUART0_CTS PIN_LPUART0_CTS_2 /* PTC8 */ -#define PIN_LPUART0_RTS PIN_LPUART0_RTS_2 /* PTC9 */ +#define PIN_LPUART0_RTS (GPIO_OUTPUT | PIN_PORTC | PIN9 ) // PIN_LPUART0_RTS_2 /* PTC9 */ #define PIN_LPUART0_RX PIN_LPUART0_RX_1 /* PTB0 */ #define PIN_LPUART0_TX PIN_LPUART0_TX_1 /* PTB1 */ diff --git a/boards/nxp/ucans32k146/nuttx-config/nsh/defconfig b/boards/nxp/ucans32k146/nuttx-config/nsh/defconfig index 3a1d631ec6..1db5d11b1e 100644 --- a/boards/nxp/ucans32k146/nuttx-config/nsh/defconfig +++ b/boards/nxp/ucans32k146/nuttx-config/nsh/defconfig @@ -51,6 +51,8 @@ CONFIG_INTELHEX_BINARY=y CONFIG_LIBC_STRERROR=y CONFIG_LPI2C0_DMA=y CONFIG_LPUART0_BAUD=38400 +CONFIG_LPUART0_IFLOWCONTROL=y +CONFIG_LPUART0_OFLOWCONTROL=y CONFIG_LPUART0_RXBUFSIZE=600 CONFIG_LPUART0_RXDMA=y CONFIG_LPUART0_TXBUFSIZE=1100 @@ -115,6 +117,7 @@ CONFIG_SCHED_LPWORK=y CONFIG_SCHED_LPWORKPRIORITY=50 CONFIG_SCHED_LPWORKSTACKSIZE=1632 CONFIG_SCHED_WAITPID=y +CONFIG_SERIAL_IFLOWCONTROL_WATERMARKS=y CONFIG_SERIAL_TERMIOS=y CONFIG_SIG_DEFAULT=y CONFIG_SPITOOL_MAXBUS=2