summaryrefslogtreecommitdiffstats
path: root/bsps/arm
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2023-07-13 15:24:40 -0500
committerJoel Sherrill <joel@rtems.org>2023-07-24 16:32:08 -0500
commit46a4c5ea796be762291deeab7b129464b904cba4 (patch)
tree4c4ce0bdb460c87fae2bf2a40c17069a05b962b8 /bsps/arm
parentscore: Move _IO_Relax() to new <rtems/dev/io.h> (diff)
downloadrtems-46a4c5ea796be762291deeab7b129464b904cba4.tar.bz2
bsps/stm32h7: Make UART7 pins configurable
This change allows for the pins assigned to UART7 to be reconfigured via config.ini.
Diffstat (limited to 'bsps/arm')
-rw-r--r--bsps/arm/stm32h7/console/console-uart7-cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsps/arm/stm32h7/console/console-uart7-cfg.c b/bsps/arm/stm32h7/console/console-uart7-cfg.c
index dca19e652d..2ced4cf9c2 100644
--- a/bsps/arm/stm32h7/console/console-uart7-cfg.c
+++ b/bsps/arm/stm32h7/console/console-uart7-cfg.c
@@ -33,9 +33,9 @@
const stm32h7_uart_config stm32h7_uart7_config = {
.gpio = {
- .regs = GPIOB,
+ .regs = STM32H7_UART7_GPIO_REGS,
.config = {
- .Pin = GPIO_PIN_3 | GPIO_PIN_4,
+ .Pin = STM32H7_UART7_GPIO_PINS,
.Mode = GPIO_MODE_AF_PP,
.Pull = GPIO_NOPULL,
.Speed = GPIO_SPEED_FREQ_LOW,