drivers: uart: stm32: make comments and options less specific
Replace specific STM32F1 references with generic STM32 ones. Use generic names like U(S)ARTx for instances which have different naming across STM32 families. Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
This commit is contained in:
parent
c0c4dfc6ea
commit
84cffc7f29
2 changed files with 28 additions and 34 deletions
|
@ -12,9 +12,9 @@ menuconfig UART_STM32
|
|||
select SERIAL_SUPPORT_INTERRUPT
|
||||
depends on SOC_FAMILY_STM32
|
||||
help
|
||||
This option enables the UART driver for STM32F10x family of
|
||||
processors. Say y if you wish to use serial port on STM32F10x
|
||||
MCU.
|
||||
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
|
||||
|
||||
|
@ -25,8 +25,8 @@ config UART_STM32_PORT_1
|
|||
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.
|
||||
Enable support for USART1 port in the driver.
|
||||
Say y here if you want to use USART1 device.
|
||||
|
||||
# --- port 2 ---
|
||||
|
||||
|
@ -35,8 +35,8 @@ config UART_STM32_PORT_2
|
|||
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.
|
||||
Enable support for USART2 port in the driver.
|
||||
Say y here if you want to use USART2 device.
|
||||
|
||||
# --- port 3 ---
|
||||
|
||||
|
@ -45,28 +45,28 @@ config UART_STM32_PORT_3
|
|||
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.
|
||||
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 UART4 Port"
|
||||
bool "Enable STM32 U(S)ART4 Port"
|
||||
default n
|
||||
depends on UART_STM32
|
||||
help
|
||||
Enable support for UART4 port in the driver. Say y here
|
||||
if you want to use UART4 device.
|
||||
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 UART5 Port"
|
||||
bool "Enable STM32 U(S)ART5 Port"
|
||||
default n
|
||||
depends on UART_STM32
|
||||
help
|
||||
Enable support for UART5 port in the driver. Say y here
|
||||
if you want to use UART5 device.
|
||||
Enable support for U(S)ART5 port in the driver.
|
||||
Say y here if you want to use U(S)ART5 device.
|
||||
|
||||
# --- port 6 ---
|
||||
|
||||
|
@ -75,28 +75,28 @@ config UART_STM32_PORT_6
|
|||
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.
|
||||
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 UART7 Port"
|
||||
bool "Enable STM32 U(S)ART7 Port"
|
||||
default n
|
||||
depends on UART_STM32
|
||||
help
|
||||
Enable support for UART7 port in the driver. Say y here
|
||||
if you want to use UART7 device.
|
||||
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 UART8 Port"
|
||||
bool "Enable STM32 U(S)ART8 Port"
|
||||
default n
|
||||
depends on UART_STM32
|
||||
help
|
||||
Enable support for UART8 port in the driver. Say y here
|
||||
if you want to use UART8 device.
|
||||
Enable support for U(S)ART8 port in the driver.
|
||||
Say y here if you want to use U(S)ART8 device.
|
||||
|
||||
# --- port 9 ---
|
||||
|
||||
|
@ -105,8 +105,8 @@ config UART_STM32_PORT_9
|
|||
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.
|
||||
Enable support for UART9 port in the driver.
|
||||
Say y here if you want to use UART9 device.
|
||||
|
||||
# --- port 10 ---
|
||||
|
||||
|
@ -115,7 +115,7 @@ config UART_STM32_PORT_10
|
|||
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.
|
||||
Enable support for UART10 port in the driver.
|
||||
Say y here if you want to use UART10 device.
|
||||
|
||||
endif # UART_STM32
|
||||
|
|
|
@ -6,14 +6,8 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @brief Driver for UART port on STM32F10x family processor.
|
||||
* @brief Driver for UART port on STM32 family processor.
|
||||
*
|
||||
* Based on reference manual:
|
||||
* STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx
|
||||
* advanced ARM ® -based 32-bit MCUs
|
||||
*
|
||||
* Chapter 27: Universal synchronous asynchronous receiver
|
||||
* transmitter (USART)
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue