bsp/stm32h7: Split console configuration

This allows applications to individually provide configuration
structures.

Update #4209.
This commit is contained in:
Sebastian Huber
2021-01-04 19:21:11 +01:00
parent affc8de85f
commit 6600585fc8
22 changed files with 508 additions and 150 deletions

View File

@@ -31,21 +31,6 @@
#include <stm32h7/hal.h>
static const stm32h7_uart_config stm32h7_uart4_config = {
.gpio = {
.regs = GPIOH,
.config = {
.Pin = GPIO_PIN_13 | GPIO_PIN_14,
.Mode = GPIO_MODE_AF_PP,
.Pull = GPIO_NOPULL,
.Speed = GPIO_SPEED_FREQ_LOW,
.Alternate = GPIO_AF6_UART4
}
},
.irq = UART4_IRQn,
.device_index = 3
};
stm32h7_uart_context stm32h7_uart4_instance = {
.uart = {
.Instance = UART4,