diff options
Diffstat (limited to 'bsps/arm/stm32h7/console/console-usart3-cfg.c')
-rw-r--r-- | bsps/arm/stm32h7/console/console-usart3-cfg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bsps/arm/stm32h7/console/console-usart3-cfg.c b/bsps/arm/stm32h7/console/console-usart3-cfg.c index b40f6da5aa..1043b449b6 100644 --- a/bsps/arm/stm32h7/console/console-usart3-cfg.c +++ b/bsps/arm/stm32h7/console/console-usart3-cfg.c @@ -31,11 +31,13 @@ #include <stm32h7/hal.h> +#include <bspopts.h> + const stm32h7_uart_config stm32h7_usart3_config = { .gpio = { - .regs = GPIOB, + .regs = STM32H7_USART3_GPIO_REGS, .config = { - .Pin = GPIO_PIN_9 | GPIO_PIN_10, + .Pin = STM32H7_USART3_GPIO_PINS, .Mode = GPIO_MODE_AF_PP, .Pull = GPIO_NOPULL, .Speed = GPIO_SPEED_FREQ_LOW, |