From 3020203d1159c22e596c3402d9c2dd1164baed68 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 3 May 2023 07:55:55 +1200 Subject: [PATCH] fmu-v6c: fix Telem1, Telem2 without flow control When flow control is used together with DMA, we need to add a pulldown to CTS. Without it, it assumes flow control and gets stuck when CTS is not connected. Signed-off-by: Julian Oes --- boards/px4/fmu-v6c/nuttx-config/include/board.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boards/px4/fmu-v6c/nuttx-config/include/board.h b/boards/px4/fmu-v6c/nuttx-config/include/board.h index abaaef0a2ab4..8042d466a7bb 100644 --- a/boards/px4/fmu-v6c/nuttx-config/include/board.h +++ b/boards/px4/fmu-v6c/nuttx-config/include/board.h @@ -375,7 +375,8 @@ #define GPIO_UART5_RX GPIO_UART5_RX_3 /* PD2 */ #define GPIO_UART5_TX GPIO_UART5_TX_3 /* PC12 */ // GPIO_UART5_RTS no remap /* PC8 */ -// GPIO_UART5_CTS No remap /* PC9 */ +#undef GPIO_UART5_CTS +#define GPIO_UART5_CTS ((GPIO_ALT|GPIO_AF8|GPIO_PORTC|GPIO_PIN9) | GPIO_PULLDOWN) /* PC9 */ #define GPIO_USART6_RX GPIO_USART6_RX_1 /* PC7 */ #define GPIO_USART6_TX GPIO_USART6_TX_1 /* PC6 */ @@ -383,7 +384,7 @@ #define GPIO_UART7_RX GPIO_UART7_RX_3 /* PE7 */ #define GPIO_UART7_TX GPIO_UART7_TX_3 /* PE8 */ #define GPIO_UART7_RTS GPIO_UART7_RTS_1 /* PE9 */ -#define GPIO_UART7_CTS GPIO_UART7_CTS_1 /* PE10 */ +#define GPIO_UART7_CTS (GPIO_UART7_CTS_1 | GPIO_PULLDOWN) /* PE10 */ #define GPIO_UART8_RX GPIO_UART8_RX_1 /* PE0 */ #define GPIO_UART8_TX GPIO_UART8_TX_1 /* PE1 */