diff options
Diffstat (limited to 'chip/stm32/usart-stm32l.c')
-rw-r--r-- | chip/stm32/usart-stm32l.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/stm32/usart-stm32l.c b/chip/stm32/usart-stm32l.c index 0ac9d092b2..a42eab41ff 100644 --- a/chip/stm32/usart-stm32l.c +++ b/chip/stm32/usart-stm32l.c @@ -6,6 +6,7 @@ #include "clock.h" #include "common.h" +#include "compile_time_macros.h" #include "hooks.h" #include "registers.h" #include "task.h" @@ -16,8 +17,15 @@ * each USART, an entry will be NULL if no USART driver is initialized for the * corresponding hardware instance. */ +#define STM32_USARTS_MAX 3 + static struct usart_config const *configs[STM32_USARTS_MAX]; +struct usart_configs usart_get_configs(void) +{ + return (struct usart_configs) {configs, ARRAY_SIZE(configs)}; +} + static void usart_variant_enable(struct usart_config const *config) { /* Use single-bit sampling */ |