Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | # Kconfig - STM32 UART configuration
#
# Copyright (c) 2016 Open-RnD Sp. z o.o.
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig UART_STM32
bool "STM32 MCU serial driver"
default n
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
depends on SOC_FAMILY_STM32
help
This option enables the UART driver for STM32 family of
processors.
Say y if you wish to use serial port on STM32 MCU.
if UART_STM32
# --- port 1 ---
config UART_STM32_PORT_1
bool "Enable STM32 USART1 Port"
default n
depends on UART_STM32
help
Enable support for USART1 port in the driver.
Say y here if you want to use USART1 device.
# --- port 2 ---
config UART_STM32_PORT_2
bool "Enable STM32 USART2 Port"
default n
depends on UART_STM32
help
Enable support for USART2 port in the driver.
Say y here if you want to use USART2 device.
# --- port 3 ---
config UART_STM32_PORT_3
bool "Enable STM32 USART3 Port"
default n
depends on UART_STM32
help
Enable support for USART3 port in the driver.
Say y here if you want to use USART3 device.
# --- port 4 ---
config UART_STM32_PORT_4
bool "Enable STM32 U(S)ART4 Port"
default n
depends on UART_STM32
help
Enable support for U(S)ART4 port in the driver.
Say y here if you want to use U(S)ART4 device.
# --- port 5 ---
config UART_STM32_PORT_5
bool "Enable STM32 U(S)ART5 Port"
default n
depends on UART_STM32
help
Enable support for U(S)ART5 port in the driver.
Say y here if you want to use U(S)ART5 device.
# --- port 6 ---
config UART_STM32_PORT_6
bool "Enable STM32 USART6 Port"
default n
depends on UART_STM32
help
Enable support for USART6 port in the driver.
Say y here if you want to use USART6 device.
# --- port 7 ---
config UART_STM32_PORT_7
bool "Enable STM32 U(S)ART7 Port"
default n
depends on UART_STM32
help
Enable support for U(S)ART7 port in the driver.
Say y here if you want to use U(S)ART7 device.
# --- port 8 ---
config UART_STM32_PORT_8
bool "Enable STM32 U(S)ART8 Port"
default n
depends on UART_STM32
help
Enable support for U(S)ART8 port in the driver.
Say y here if you want to use U(S)ART8 device.
# --- port 9 ---
config UART_STM32_PORT_9
bool "Enable STM32 UART9 Port"
default n
depends on UART_STM32
help
Enable support for UART9 port in the driver.
Say y here if you want to use UART9 device.
# --- port 10 ---
config UART_STM32_PORT_10
bool "Enable STM32 UART10 Port"
default n
depends on UART_STM32
help
Enable support for UART10 port in the driver.
Say y here if you want to use UART10 device.
if SOC_SERIES_STM32L0X || SOC_SERIES_STM32L4X
# --- low power port 1 ---
config UART_STM32_LPUART_1
bool "Enable STM32 LPUART1 Port"
default n
depends on UART_STM32
help
Enable support for LPUART1 port in the driver.
Say y here if you want to use LPUART1 device.
endif # SOC_SERIES_STM32L0X || SOC_SERIES_STM32L4X
endif # UART_STM32
|