diff options
Diffstat (limited to 'bsps/arm/stm32h7/console/console-usart1-cfg.c')
-rw-r--r-- | bsps/arm/stm32h7/console/console-usart1-cfg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bsps/arm/stm32h7/console/console-usart1-cfg.c b/bsps/arm/stm32h7/console/console-usart1-cfg.c index 47c13b2f54..ff85e2f2af 100644 --- a/bsps/arm/stm32h7/console/console-usart1-cfg.c +++ b/bsps/arm/stm32h7/console/console-usart1-cfg.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) + * Copyright (C) 2020 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,15 +31,17 @@ #include <stm32h7/hal.h> +#include <bspopts.h> + const stm32h7_uart_config stm32h7_usart1_config = { .gpio = { - .regs = GPIOB, + .regs = STM32H7_USART1_GPIO_REGS, .config = { - .Pin = GPIO_PIN_14 | GPIO_PIN_15, + .Pin = STM32H7_USART1_GPIO_PINS, .Mode = GPIO_MODE_AF_PP, .Pull = GPIO_NOPULL, .Speed = GPIO_SPEED_FREQ_LOW, - .Alternate = GPIO_AF4_USART1 + .Alternate = STM32H7_USART1_ALT_FUNC } }, .irq = USART1_IRQn, |