Skip to content

Commit 25ea5fe

Browse files
Georgij CernysiovBenichou34
authored andcommitted
drivers: pinmux: stm32: add F4 RTS/CTS definitions
Adds USART RTS/CTS definitions based on STM32F469X/STM32F479X. Co-authored-by: Benoit Leforestier <[email protected]> Signed-off-by: Georgij Cernysiov <[email protected]>
1 parent 04da64d commit 25ea5fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/pinmux/stm32/pinmux_stm32f4.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@
414414
#define STM32F4_PINMUX_FUNC_PG9_USART6_RX \
415415
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
416416

417+
#define STM32F4_PINMUX_FUNC_PG8_USART6_RTS \
418+
(STM32_PINMUX_ALT_FUNC_8 | STM32_OPENDRAIN_PULLUP)
417419
#define STM32F4_PINMUX_FUNC_PG8_ETH \
418420
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
419421
STM32_OSPEEDR_VERY_HIGH_SPEED)
@@ -424,9 +426,13 @@
424426
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
425427
STM32_OSPEEDR_VERY_HIGH_SPEED)
426428

429+
#define STM32F4_PINMUX_FUNC_PG12_USART6_RTS \
430+
(STM32_PINMUX_ALT_FUNC_8 | STM32_OPENDRAIN_PULLUP)
427431
#define STM32F4_PINMUX_FUNC_PG12_UART10_TX \
428432
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_PULLUP)
429433

434+
#define STM32F4_PINMUX_FUNC_PG13_USART6_CTS \
435+
(STM32_PINMUX_ALT_FUNC_8 | STM32_OPENDRAIN_PULLUP)
430436
#define STM32F4_PINMUX_FUNC_PG13_ETH \
431437
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
432438
STM32_OSPEEDR_VERY_HIGH_SPEED)
@@ -437,6 +443,8 @@
437443
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
438444
STM32_OSPEEDR_VERY_HIGH_SPEED)
439445

446+
#define STM32F4_PINMUX_FUNC_PG15_USART6_CTS \
447+
(STM32_PINMUX_ALT_FUNC_8 | STM32_OPENDRAIN_PULLUP)
440448
/* Port H */
441449
#define STM32F4_PINMUX_FUNC_PH2_ETH \
442450
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \

0 commit comments

Comments
 (0)