zephyr/drivers/serial/Kconfig.stm32
Patryk Duda 1aebcec02f drivers: serial: Reset UART using RCC before initialization
In multi-image environment, after jump to the image we can have UART in
unexpected state. Reset UART to default state to make sure that UART is
initialized properly and won't cause system to crash or hang.

Signed-off-by: Patryk Duda <pdk@semihalf.com>
2022-12-09 09:43:36 -08:00

24 lines
693 B
Plaintext

# STM32 UART configuration
# Copyright (c) 2016 Open-RnD Sp. z o.o.
# SPDX-License-Identifier: Apache-2.0
config UART_STM32
bool "STM32 MCU serial driver"
default y
depends on DT_HAS_ST_STM32_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
# the ASYNC implementation requires a DMA controller
select SERIAL_SUPPORT_ASYNC \
if DT_HAS_ST_STM32_DMA_V1_ENABLED || \
DT_HAS_ST_STM32_DMA_V2_ENABLED || \
DT_HAS_ST_STM32_DMA_V2BIS_ENABLED || \
DT_HAS_ST_STM32U5_DMA_ENABLED
select DMA if UART_ASYNC_API
select RESET
help
This option enables the UART driver for STM32 family of
processors.
Say y if you wish to use serial port on STM32 MCU.