From 2cfdea2edb93400019642df0c01ab91673fb1c58 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 24 Jan 2024 12:10:35 +1300 Subject: [PATCH] fmu-6x: fix 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-v6x/nuttx-config/include/board.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boards/px4/fmu-v6x/nuttx-config/include/board.h b/boards/px4/fmu-v6x/nuttx-config/include/board.h index 5057ed713e..d6b2925b79 100644 --- a/boards/px4/fmu-v6x/nuttx-config/include/board.h +++ b/boards/px4/fmu-v6x/nuttx-config/include/board.h @@ -380,7 +380,9 @@ #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 */