diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-06 09:56:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-06 09:56:41 +0200 |
commit | 05cd707d283be1bc0432c181e1f1c590db9209ea (patch) | |
tree | a61b78f99b0d434abb7287c68820bebd61e2598d /bsps/arm/stm32h7/console/console-usart3-cfg.c | |
parent | arm/stm32h7: Add STM32H7_HSE_FREQUENCY (diff) | |
download | rtems-05cd707d283be1bc0432c181e1f1c590db9209ea.tar.bz2 |
arm/stm32h7: Add STM32H7_USART3_GPIO_*
Diffstat (limited to '')
-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, |