summaryrefslogtreecommitdiffstats
path: root/bsps/arm/stm32h7/console/console-usart2-cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/arm/stm32h7/console/console-usart2-cfg.c')
-rw-r--r--bsps/arm/stm32h7/console/console-usart2-cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsps/arm/stm32h7/console/console-usart2-cfg.c b/bsps/arm/stm32h7/console/console-usart2-cfg.c
index e0b406c6c2..d7f59f05d1 100644
--- a/bsps/arm/stm32h7/console/console-usart2-cfg.c
+++ b/bsps/arm/stm32h7/console/console-usart2-cfg.c
@@ -33,9 +33,9 @@
const stm32h7_uart_config stm32h7_usart2_config = {
.gpio = {
- .regs = GPIOA,
+ .regs = STM32H7_USART2_GPIO_REGS,
.config = {
- .Pin = GPIO_PIN_2 | GPIO_PIN_3,
+ .Pin = STM32H7_USART2_GPIO_PINS,
.Mode = GPIO_MODE_AF_PP,
.Pull = GPIO_NOPULL,
.Speed = GPIO_SPEED_FREQ_LOW,