2016-03-03 22:33:20 +08:00
|
|
|
# Kconfig - STM32 UART configuration
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-03-03 22:33:20 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig UART_STM32
|
|
|
|
bool "STM32 MCU serial driver"
|
|
|
|
default n
|
|
|
|
select SERIAL_HAS_DRIVER
|
2017-06-23 00:26:58 +08:00
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
2016-04-03 10:29:40 +08:00
|
|
|
depends on SOC_FAMILY_STM32
|
2016-03-03 22:33:20 +08:00
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
This option enables the UART driver for STM32 family of
|
|
|
|
processors.
|
|
|
|
Say y if you wish to use serial port on STM32 MCU.
|
2016-03-03 22:33:20 +08:00
|
|
|
|
2017-03-13 22:02:47 +08:00
|
|
|
if UART_STM32
|
|
|
|
|
2016-11-14 18:59:45 +08:00
|
|
|
# --- port 1 ---
|
2016-03-03 22:33:20 +08:00
|
|
|
|
2016-11-14 18:59:45 +08:00
|
|
|
config UART_STM32_PORT_1
|
2016-03-03 22:33:20 +08:00
|
|
|
bool "Enable STM32 USART1 Port"
|
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for USART1 port in the driver.
|
|
|
|
Say y here if you want to use USART1 device.
|
2016-03-03 22:33:20 +08:00
|
|
|
|
2016-11-14 18:59:45 +08:00
|
|
|
# --- port 2 ---
|
2016-03-03 22:33:20 +08:00
|
|
|
|
2016-11-14 18:59:45 +08:00
|
|
|
config UART_STM32_PORT_2
|
2016-03-03 22:33:20 +08:00
|
|
|
bool "Enable STM32 USART2 Port"
|
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for USART2 port in the driver.
|
|
|
|
Say y here if you want to use USART2 device.
|
2016-03-03 22:33:20 +08:00
|
|
|
|
2016-11-14 18:59:45 +08:00
|
|
|
# --- port 3 ---
|
2016-03-03 22:33:20 +08:00
|
|
|
|
2016-11-14 18:59:45 +08:00
|
|
|
config UART_STM32_PORT_3
|
2016-03-03 22:33:20 +08:00
|
|
|
bool "Enable STM32 USART3 Port"
|
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for USART3 port in the driver.
|
|
|
|
Say y here if you want to use USART3 device.
|
2016-03-03 22:33:20 +08:00
|
|
|
|
2017-05-01 21:22:02 +08:00
|
|
|
# --- port 4 ---
|
|
|
|
|
|
|
|
config UART_STM32_PORT_4
|
2018-03-21 01:44:45 +08:00
|
|
|
bool "Enable STM32 U(S)ART4 Port"
|
2017-05-01 21:22:02 +08:00
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for U(S)ART4 port in the driver.
|
|
|
|
Say y here if you want to use U(S)ART4 device.
|
2017-05-01 21:22:02 +08:00
|
|
|
|
|
|
|
# --- port 5 ---
|
|
|
|
|
|
|
|
config UART_STM32_PORT_5
|
2018-03-21 01:44:45 +08:00
|
|
|
bool "Enable STM32 U(S)ART5 Port"
|
2017-05-01 21:22:02 +08:00
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for U(S)ART5 port in the driver.
|
|
|
|
Say y here if you want to use U(S)ART5 device.
|
2017-05-01 21:22:02 +08:00
|
|
|
|
|
|
|
# --- port 6 ---
|
|
|
|
|
|
|
|
config UART_STM32_PORT_6
|
|
|
|
bool "Enable STM32 USART6 Port"
|
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for USART6 port in the driver.
|
|
|
|
Say y here if you want to use USART6 device.
|
2017-05-01 21:22:02 +08:00
|
|
|
|
|
|
|
# --- port 7 ---
|
|
|
|
|
|
|
|
config UART_STM32_PORT_7
|
2018-03-21 01:44:45 +08:00
|
|
|
bool "Enable STM32 U(S)ART7 Port"
|
2017-05-01 21:22:02 +08:00
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for U(S)ART7 port in the driver.
|
|
|
|
Say y here if you want to use U(S)ART7 device.
|
2017-05-01 21:22:02 +08:00
|
|
|
|
|
|
|
# --- port 8 ---
|
|
|
|
|
|
|
|
config UART_STM32_PORT_8
|
2018-03-21 01:44:45 +08:00
|
|
|
bool "Enable STM32 U(S)ART8 Port"
|
2017-05-01 21:22:02 +08:00
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for U(S)ART8 port in the driver.
|
|
|
|
Say y here if you want to use U(S)ART8 device.
|
2017-05-01 21:22:02 +08:00
|
|
|
|
|
|
|
# --- port 9 ---
|
|
|
|
|
|
|
|
config UART_STM32_PORT_9
|
|
|
|
bool "Enable STM32 UART9 Port"
|
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for UART9 port in the driver.
|
|
|
|
Say y here if you want to use UART9 device.
|
2017-05-01 21:22:02 +08:00
|
|
|
|
|
|
|
# --- port 10 ---
|
|
|
|
|
|
|
|
config UART_STM32_PORT_10
|
|
|
|
bool "Enable STM32 UART10 Port"
|
|
|
|
default n
|
|
|
|
depends on UART_STM32
|
|
|
|
help
|
2018-03-21 01:44:45 +08:00
|
|
|
Enable support for UART10 port in the driver.
|
|
|
|
Say y here if you want to use UART10 device.
|
2017-05-01 21:22:02 +08:00
|
|
|
|
2017-03-13 22:02:47 +08:00
|
|
|
endif # UART_STM32
|