forked from nuttx/nuttx-update
drivers/serial/Kconfig: Kconfig is too big, divide into Kconfig, Kconfig-uart, Kconfig-usart, Kconfig-sci, Kconfig-16550. More than one MCU supports LPUARTs. Add Kconfig-lpuart and remove MCU-specific LPUART definitions. Affects Kinetis and STM32L4.
This commit is contained in:
parent
4a21c64f68
commit
9c1efc7ab9
8 changed files with 2470 additions and 1917 deletions
|
@ -394,7 +394,7 @@ config KINETIS_LPUART0
|
|||
bool "Low power LPUART0"
|
||||
default n
|
||||
depends on KINETIS_HAVE_LPUART0
|
||||
select OTHER_UART_SERIALDRIVER
|
||||
select LPUART0_SERIALDRIVER
|
||||
select KINETIS_LPUART
|
||||
select KINETIS_SERIALDRIVER
|
||||
select ARCH_HAVE_SERIAL_TERMIOS
|
||||
|
@ -405,7 +405,7 @@ config KINETIS_LPUART1
|
|||
bool "Low power LPUART1"
|
||||
default n
|
||||
depends on KINETIS_HAVE_LPUART1
|
||||
select OTHER_UART_SERIALDRIVER
|
||||
select LPUART1_SERIALDRIVER
|
||||
select KINETIS_LPUART
|
||||
select KINETIS_SERIALDRIVER
|
||||
select ARCH_HAVE_SERIAL_TERMIOS
|
||||
|
@ -998,163 +998,6 @@ config KINETIS_UARTFIFOS
|
|||
|
||||
endmenu # Kinetis UART Configuration
|
||||
|
||||
menu "Kinetis LPUART0 Configuration"
|
||||
depends on KINETIS_LPUART0
|
||||
|
||||
config LPUART0_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART0_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART0_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config LPUART0_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART0_PARITY
|
||||
int "Parity setting"
|
||||
range 0 2
|
||||
default 0
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART0_2STOP
|
||||
int "use 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART0_IFLOWCONTROL
|
||||
bool "LPUART0 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART0 RTS flow control
|
||||
|
||||
config LPUART0_OFLOWCONTROL
|
||||
bool "LPUART0 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART0 CTS flow control
|
||||
|
||||
config LPUART0_DMA
|
||||
bool "LPUART0 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART0
|
||||
|
||||
endmenu # Kinetis LPUART0 Configuration
|
||||
|
||||
menu "Kinetis LPUART1 Configuration"
|
||||
depends on KINETIS_LPUART1
|
||||
|
||||
config LPUART1_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART1_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART1_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config LPUART1_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART1_PARITY
|
||||
int "Parity setting"
|
||||
range 0 2
|
||||
default 0
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART1_2STOP
|
||||
int "use 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART1_IFLOWCONTROL
|
||||
bool "LPUART1 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART1 RTS flow control
|
||||
|
||||
config LPUART1_OFLOWCONTROL
|
||||
bool "LPUART1 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART1 CTS flow control
|
||||
|
||||
config LPUART1_DMA
|
||||
bool "LPUART1 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART1
|
||||
|
||||
endmenu # Kinetis LPUART1 Configuration
|
||||
|
||||
choice
|
||||
prompt "Kinetis LPUART Serial Console"
|
||||
default NO_LPUART_SERIAL_CONSOLE
|
||||
depends on DEV_CONSOLE && KINETIS_LPUART
|
||||
|
||||
config LPUART0_SERIAL_CONSOLE
|
||||
bool "Use LPUART0 as the serial console"
|
||||
depends on KINETIS_LPUART0
|
||||
select OTHER_SERIAL_CONSOLE
|
||||
---help---
|
||||
Use the LPUART0 device as the serial console
|
||||
|
||||
config LPUART1_SERIAL_CONSOLE
|
||||
bool "Use LPUART1 as the serial console"
|
||||
depends on KINETIS_LPUART1
|
||||
select OTHER_SERIAL_CONSOLE
|
||||
---help---
|
||||
Use the LPUART1 device as the serial console
|
||||
|
||||
config NO_LPUART_SERIAL_CONSOLE
|
||||
bool "No LPUART serial console"
|
||||
---help---
|
||||
No serial LPUART based console OR some other serial device provides
|
||||
the serial console
|
||||
|
||||
endchoice # Kinetis LPUART Serial Console
|
||||
|
||||
config KINETIS_MERGE_TTY
|
||||
bool "Kinetis Merge TTY names for LPUARTS"
|
||||
default n
|
||||
|
|
|
@ -1238,6 +1238,7 @@ config STM32L4_LPTIM1
|
|||
config STM32L4_LPUART1
|
||||
bool "LPUART1"
|
||||
default n
|
||||
select LPUART1_SERIALDRIVER
|
||||
select ARCH_HAVE_SERIAL_TERMIOS
|
||||
select ARCH_HAVE_LPUART1
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
333
drivers/serial/Kconfig-16550
Normal file
333
drivers/serial/Kconfig-16550
Normal file
|
@ -0,0 +1,333 @@
|
|||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
if 16550_UART
|
||||
|
||||
config 16550_UART0
|
||||
bool "16550 UART0"
|
||||
default n
|
||||
|
||||
if 16550_UART0
|
||||
|
||||
config 16550_UART0_BASE
|
||||
hex "16550 UART0 base address"
|
||||
|
||||
config 16550_UART0_CLOCK
|
||||
int "16550 UART0 clock"
|
||||
|
||||
config 16550_UART0_IRQ
|
||||
int "16550 UART0 IRQ number"
|
||||
|
||||
config 16550_UART0_BAUD
|
||||
int "16550 UART0 BAUD"
|
||||
default 115200
|
||||
|
||||
config 16550_UART0_PARITY
|
||||
int "16550 UART0 parity"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
16550 UART0 parity. 0=None, 1=Odd, 2=Even. Default: None
|
||||
|
||||
config 16550_UART0_BITS
|
||||
int "16550 UART0 number of bits"
|
||||
default 8
|
||||
---help---
|
||||
16550 UART0 number of bits. Default: 8
|
||||
|
||||
config 16550_UART0_2STOP
|
||||
int "16550 UART0 two stop bits"
|
||||
default 0
|
||||
---help---
|
||||
0=1 stop bit, 1=Two stop bits. Default: 1 stop bit
|
||||
|
||||
config 16550_UART0_RXBUFSIZE
|
||||
int "16550 UART0 Rx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART0 Rx buffer size. Default: 256
|
||||
|
||||
config 16550_UART0_TXBUFSIZE
|
||||
int "16550 UART0 Tx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART0 Tx buffer size. Default: 256
|
||||
|
||||
config 16550_UART0_IFLOWCONTROL
|
||||
bool "16550 UART0 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART0 RTS flow control
|
||||
|
||||
config 16550_UART0_OFLOWCONTROL
|
||||
bool "16550 UART0 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART0 CTS flow control
|
||||
|
||||
endif # 16550_UART0
|
||||
|
||||
config 16550_UART1
|
||||
bool "16550 UART1"
|
||||
default n
|
||||
|
||||
if 16550_UART1
|
||||
|
||||
config 16550_UART1_BASE
|
||||
hex "16550 UART1 base address"
|
||||
|
||||
config 16550_UART1_CLOCK
|
||||
int "16550 UART1 clock"
|
||||
|
||||
config 16550_UART1_IRQ
|
||||
int "16550 UART1 IRQ number"
|
||||
|
||||
config 16550_UART1_BAUD
|
||||
int "16550 UART1 BAUD"
|
||||
default 115200
|
||||
|
||||
config 16550_UART1_PARITY
|
||||
int "16550 UART1 parity"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
16550 UART1 parity. 0=None, 1=Odd, 2=Even. Default: None
|
||||
|
||||
config 16550_UART1_BITS
|
||||
int "16550 UART1 number of bits"
|
||||
default 8
|
||||
---help---
|
||||
16550 UART1 number of bits. Default: 8
|
||||
|
||||
config 16550_UART1_2STOP
|
||||
int "16550 UART1 two stop bits"
|
||||
default 0
|
||||
---help---
|
||||
0=1 stop bit, 1=Two stop bits. Default: 1 stop bit
|
||||
|
||||
config 16550_UART1_RXBUFSIZE
|
||||
int "16550 UART1 Rx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART1 Rx buffer size. Default: 256
|
||||
|
||||
config 16550_UART1_TXBUFSIZE
|
||||
int "16550 UART1 Tx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART1 Tx buffer size. Default: 256
|
||||
|
||||
config 16550_UART1_IFLOWCONTROL
|
||||
bool "16550 UART1 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART1 RTS flow control
|
||||
|
||||
config 16550_UART1_OFLOWCONTROL
|
||||
bool "16550 UART1 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART1 CTS flow control
|
||||
|
||||
endif # 16550_UART1
|
||||
|
||||
config 16550_UART2
|
||||
bool "16550 UART2"
|
||||
default n
|
||||
|
||||
if 16550_UART2
|
||||
|
||||
config 16550_UART2_BASE
|
||||
hex "16550 UART2 base address"
|
||||
|
||||
config 16550_UART2_CLOCK
|
||||
int "16550 UART2 clock"
|
||||
|
||||
config 16550_UART2_IRQ
|
||||
int "16550 UART2 IRQ number"
|
||||
|
||||
config 16550_UART2_BAUD
|
||||
int "16550 UART2 BAUD"
|
||||
default 115200
|
||||
|
||||
config 16550_UART2_PARITY
|
||||
int "16550 UART2 parity"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
16550 UART2 parity. 0=None, 1=Odd, 2=Even. Default: None
|
||||
|
||||
config 16550_UART2_BITS
|
||||
int "16550 UART2 number of bits"
|
||||
default 8
|
||||
---help---
|
||||
16550 UART2 number of bits. Default: 8
|
||||
|
||||
config 16550_UART2_2STOP
|
||||
int "16550 UART2 two stop bits"
|
||||
default 0
|
||||
---help---
|
||||
0=1 stop bit, 1=Two stop bits. Default: 1 stop bit
|
||||
|
||||
config 16550_UART2_RXBUFSIZE
|
||||
int "16550 UART2 Rx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART2 Rx buffer size. Default: 256
|
||||
|
||||
config 16550_UART2_TXBUFSIZE
|
||||
int "16550 UART2 Tx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART2 Tx buffer size. Default: 256
|
||||
|
||||
config 16550_UART2_IFLOWCONTROL
|
||||
bool "16550 UART2 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART2 RTS flow control
|
||||
|
||||
config 16550_UART2_OFLOWCONTROL
|
||||
bool "16550 UART2 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART2 CTS flow control
|
||||
|
||||
endif # 16550_UART2
|
||||
|
||||
config 16550_UART3
|
||||
bool "16550 UART3"
|
||||
default n
|
||||
|
||||
if 16550_UART3
|
||||
|
||||
config 16550_UART3_BASE
|
||||
hex "16550 UART3 base address"
|
||||
|
||||
config 16550_UART3_CLOCK
|
||||
int "16550 UART3 clock"
|
||||
|
||||
config 16550_UART3_IRQ
|
||||
int "16550 UART3 IRQ number"
|
||||
|
||||
config 16550_UART3_BAUD
|
||||
int "16550 UART3 BAUD"
|
||||
default 115200
|
||||
|
||||
config 16550_UART3_PARITY
|
||||
int "16550 UART3 parity"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
16550 UART3 parity. 0=None, 1=Odd, 2=Even. Default: None
|
||||
|
||||
config 16550_UART3_BITS
|
||||
int "16550 UART3 number of bits"
|
||||
default 8
|
||||
---help---
|
||||
16550 UART3 number of bits. Default: 8
|
||||
|
||||
config 16550_UART3_2STOP
|
||||
int "16550 UART3 two stop bits"
|
||||
default 0
|
||||
---help---
|
||||
0=1 stop bit, 1=Two stop bits. Default: 1 stop bit
|
||||
|
||||
config 16550_UART3_RXBUFSIZE
|
||||
int "16550 UART3 Rx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART3 Rx buffer size. Default: 256
|
||||
|
||||
config 16550_UART3_TXBUFSIZE
|
||||
int "16550 UART3 Tx buffer size"
|
||||
default 256
|
||||
---help---
|
||||
16550 UART3 Tx buffer size. Default: 256
|
||||
|
||||
config 16550_UART3_IFLOWCONTROL
|
||||
bool "16550 UART3 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART3 RTS flow control
|
||||
|
||||
config 16550_UART3_OFLOWCONTROL
|
||||
bool "16550 UART3 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable 16550 UART3 CTS flow control
|
||||
|
||||
endif # 16550_UART3
|
||||
|
||||
choice
|
||||
prompt "16550 Serial Console"
|
||||
default 16550_NO_SERIAL_CONSOLE
|
||||
depends on DEV_CONSOLE
|
||||
|
||||
config 16550_UART0_SERIAL_CONSOLE
|
||||
bool "16550 UART0 serial console"
|
||||
depends on 16550_UART0
|
||||
select SERIAL_CONSOLE
|
||||
|
||||
config 16550_UART1_SERIAL_CONSOLE
|
||||
bool "16550 UART1 serial console"
|
||||
depends on 16550_UART1
|
||||
select SERIAL_CONSOLE
|
||||
|
||||
config 16550_UART2_SERIAL_CONSOLE
|
||||
bool "16550 UART2 serial console"
|
||||
depends on 16550_UART2
|
||||
select SERIAL_CONSOLE
|
||||
|
||||
config 16550_UART3_SERIAL_CONSOLE
|
||||
bool "16550 UART3 serial console"
|
||||
depends on 16550_UART3
|
||||
select SERIAL_CONSOLE
|
||||
|
||||
config 16550_NO_SERIAL_CONSOLE
|
||||
bool "No 16550 serial console"
|
||||
|
||||
endchoice # 16550 Serial Console
|
||||
|
||||
config 16550_SUPRESS_CONFIG
|
||||
bool "Suppress 16550 configuration"
|
||||
default n
|
||||
---help---
|
||||
This option is useful, for example, if you are using a bootloader
|
||||
that configures the 16550_UART. In that case, you may want to
|
||||
just leave the existing console configuration in place. Default: n
|
||||
|
||||
config SERIAL_UART_ARCH_IOCTL
|
||||
bool "Platform has own custom IOCTL"
|
||||
default n
|
||||
|
||||
config 16550_REGINCR
|
||||
int "Address increment between 16550 registers"
|
||||
default 1
|
||||
---help---
|
||||
The address increment between 16550 registers. Options are 1, 2, or 4.
|
||||
Default: 1
|
||||
|
||||
config 16550_REGWIDTH
|
||||
int "Bit width of 16550 registers"
|
||||
default 8
|
||||
---help---
|
||||
The bit width of registers. Options are 8, 16, or 32. Default: 8
|
||||
|
||||
config 16550_ADDRWIDTH
|
||||
int "Address width of 16550 registers"
|
||||
default 8
|
||||
---help---
|
||||
The bit width of registers. Options are 8, 16, or 32. Default: 8
|
||||
|
||||
endif # 16550_UART
|
639
drivers/serial/Kconfig-lpuart
Normal file
639
drivers/serial/Kconfig-lpuart
Normal file
|
@ -0,0 +1,639 @@
|
|||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config LPUART_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART0_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART1_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART2_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART3_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART4_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART5_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART6_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART7_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config LPUART8_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
menu "LPUART0 Configuration"
|
||||
depends on LPUART0_SERIALDRIVER
|
||||
|
||||
config LPUART0_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART0_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART0_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART0_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART0_PARITY
|
||||
int "Parity setting"
|
||||
range 0 2
|
||||
default 0
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART0_2STOP
|
||||
int "use 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART0_IFLOWCONTROL
|
||||
bool "LPUART0 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART0 RTS flow control
|
||||
|
||||
config LPUART0_OFLOWCONTROL
|
||||
bool "LPUART0 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART0 CTS flow control
|
||||
|
||||
config LPUART0_DMA
|
||||
bool "LPUART0 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART0
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART1 Configuration"
|
||||
depends on LPUART1_SERIALDRIVER
|
||||
|
||||
config LPUART1_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART1_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART1_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART1_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART1_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART1_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART1_IFLOWCONTROL
|
||||
bool "LPUART1 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART1 RTS flow control
|
||||
|
||||
config LPUART1_OFLOWCONTROL
|
||||
bool "LPUART1 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART1 CTS flow control
|
||||
|
||||
config LPUART1_DMA
|
||||
bool "LPUART1 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART1
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART2 Configuration"
|
||||
depends on LPUART2_SERIALDRIVER
|
||||
|
||||
config LPUART2_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART2_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART2_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART2_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART2_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART2_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART2_IFLOWCONTROL
|
||||
bool "LPUART2 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART2 RTS flow control
|
||||
|
||||
config LPUART2_OFLOWCONTROL
|
||||
bool "LPUART2 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART2 CTS flow control
|
||||
|
||||
config LPUART2_DMA
|
||||
bool "LPUART2 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART2
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART3 Configuration"
|
||||
depends on LPUART3_SERIALDRIVER
|
||||
|
||||
config LPUART3_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART3_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART3_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART3_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART3_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART3_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART3_IFLOWCONTROL
|
||||
bool "LPUART3 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART3 RTS flow control
|
||||
|
||||
config LPUART3_OFLOWCONTROL
|
||||
bool "LPUART3 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART3 CTS flow control
|
||||
|
||||
config LPUART3_DMA
|
||||
bool "LPUART3 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART3
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART4 Configuration"
|
||||
depends on LPUART4_SERIALDRIVER
|
||||
|
||||
config LPUART4_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART4_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART4_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART4_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART4_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART4_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART4_IFLOWCONTROL
|
||||
bool "LPUART4 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART4 RTS flow control
|
||||
|
||||
config LPUART4_OFLOWCONTROL
|
||||
bool "LPUART4 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART4 CTS flow control
|
||||
|
||||
config LPUART4_DMA
|
||||
bool "LPUART4 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART4
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART5 Configuration"
|
||||
depends on LPUART5_SERIALDRIVER
|
||||
|
||||
config LPUART5_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART5_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART5_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART5_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART5_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART5_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART5_IFLOWCONTROL
|
||||
bool "LPUART5 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART5 RTS flow control
|
||||
|
||||
config LPUART5_OFLOWCONTROL
|
||||
bool "LPUART5 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART5 CTS flow control
|
||||
|
||||
config LPUART5_DMA
|
||||
bool "LPUART5 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART5
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART6 Configuration"
|
||||
depends on LPUART6_SERIALDRIVER
|
||||
|
||||
config LPUART6_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART6_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART6_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART6_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART6_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART6_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART6_IFLOWCONTROL
|
||||
bool "LPUART6 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART6 RTS flow control
|
||||
|
||||
config LPUART6_OFLOWCONTROL
|
||||
bool "LPUART6 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART6 CTS flow control
|
||||
|
||||
config LPUART6_DMA
|
||||
bool "LPUART6 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART6
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART7 Configuration"
|
||||
depends on LPUART7_SERIALDRIVER
|
||||
|
||||
config LPUART7_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART7_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART7_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART7_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART7_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART7_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART7_IFLOWCONTROL
|
||||
bool "LPUART7 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART7 RTS flow control
|
||||
|
||||
config LPUART7_OFLOWCONTROL
|
||||
bool "LPUART7 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART7 CTS flow control
|
||||
|
||||
config LPUART7_DMA
|
||||
bool "LPUART7 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART7
|
||||
|
||||
endmenu
|
||||
|
||||
menu "LPUART8 Configuration"
|
||||
depends on LPUART8_SERIALDRIVER
|
||||
|
||||
config LPUART8_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config LPUART8_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config LPUART8_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the LPUART.
|
||||
|
||||
config LPUART8_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config LPUART8_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config LPUART8_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config LPUART8_IFLOWCONTROL
|
||||
bool "LPUART8 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART8 RTS flow control
|
||||
|
||||
config LPUART8_OFLOWCONTROL
|
||||
bool "LPUART8 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable LPUART8 CTS flow control
|
||||
|
||||
config LPUART8_DMA
|
||||
bool "LPUART8 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on LPUART8
|
||||
|
||||
endmenu
|
102
drivers/serial/Kconfig-sci
Normal file
102
drivers/serial/Kconfig-sci
Normal file
|
@ -0,0 +1,102 @@
|
|||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config SCI0_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config SCI1_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
menu "SCI0 Configuration"
|
||||
depends on SCI0_SERIALDRIVER
|
||||
|
||||
config SCI0_RXBUFSIZE
|
||||
int "SCI0 receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config SCI0_TXBUFSIZE
|
||||
int "SCI0 transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config SCI0_BAUD
|
||||
int "SCI0 BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the SCI.
|
||||
|
||||
config SCI0_BITS
|
||||
int "SCI0 character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config SCI0_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config SCI0_2STOP
|
||||
int "SCI0 use 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
endmenu # SCI0 Configuration
|
||||
|
||||
menu "SCI1 Configuration"
|
||||
depends on SCI1_SERIALDRIVER
|
||||
|
||||
config SCI1_RXBUFSIZE
|
||||
int "SCI1 receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config SCI1_TXBUFSIZE
|
||||
int "SCI1 transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config SCI1_BAUD
|
||||
int "SCI1 BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the SCI.
|
||||
|
||||
config SCI1_BITS
|
||||
int "SCI1 character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config SCI1_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config SCI1_2STOP
|
||||
int "SCI1 use 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
endmenu # SCI1 Configuration
|
639
drivers/serial/Kconfig-uart
Normal file
639
drivers/serial/Kconfig-uart
Normal file
|
@ -0,0 +1,639 @@
|
|||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config UART_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART0_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART1_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART2_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART3_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART4_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART5_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART6_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART7_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config UART8_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
menu "UART0 Configuration"
|
||||
depends on UART0_SERIALDRIVER
|
||||
|
||||
config UART0_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART0_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART0_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART0_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART0_PARITY
|
||||
int "Parity setting"
|
||||
range 0 2
|
||||
default 0
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART0_2STOP
|
||||
int "use 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART0_IFLOWCONTROL
|
||||
bool "UART0 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART0 RTS flow control
|
||||
|
||||
config UART0_OFLOWCONTROL
|
||||
bool "UART0 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART0 CTS flow control
|
||||
|
||||
config UART0_DMA
|
||||
bool "UART0 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART0
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART1 Configuration"
|
||||
depends on UART1_SERIALDRIVER
|
||||
|
||||
config UART1_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART1_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART1_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART1_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART1_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART1_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART1_IFLOWCONTROL
|
||||
bool "UART1 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART1 RTS flow control
|
||||
|
||||
config UART1_OFLOWCONTROL
|
||||
bool "UART1 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART1 CTS flow control
|
||||
|
||||
config UART1_DMA
|
||||
bool "UART1 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART1
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART2 Configuration"
|
||||
depends on UART2_SERIALDRIVER
|
||||
|
||||
config UART2_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART2_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART2_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART2_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART2_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART2_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART2_IFLOWCONTROL
|
||||
bool "UART2 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART2 RTS flow control
|
||||
|
||||
config UART2_OFLOWCONTROL
|
||||
bool "UART2 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART2 CTS flow control
|
||||
|
||||
config UART2_DMA
|
||||
bool "UART2 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART2
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART3 Configuration"
|
||||
depends on UART3_SERIALDRIVER
|
||||
|
||||
config UART3_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART3_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART3_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART3_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART3_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART3_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART3_IFLOWCONTROL
|
||||
bool "UART3 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART3 RTS flow control
|
||||
|
||||
config UART3_OFLOWCONTROL
|
||||
bool "UART3 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART3 CTS flow control
|
||||
|
||||
config UART3_DMA
|
||||
bool "UART3 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART3
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART4 Configuration"
|
||||
depends on UART4_SERIALDRIVER
|
||||
|
||||
config UART4_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART4_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART4_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART4_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART4_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART4_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART4_IFLOWCONTROL
|
||||
bool "UART4 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART4 RTS flow control
|
||||
|
||||
config UART4_OFLOWCONTROL
|
||||
bool "UART4 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART4 CTS flow control
|
||||
|
||||
config UART4_DMA
|
||||
bool "UART4 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART4
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART5 Configuration"
|
||||
depends on UART5_SERIALDRIVER
|
||||
|
||||
config UART5_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART5_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART5_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART5_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART5_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART5_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART5_IFLOWCONTROL
|
||||
bool "UART5 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART5 RTS flow control
|
||||
|
||||
config UART5_OFLOWCONTROL
|
||||
bool "UART5 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART5 CTS flow control
|
||||
|
||||
config UART5_DMA
|
||||
bool "UART5 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART5
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART6 Configuration"
|
||||
depends on UART6_SERIALDRIVER
|
||||
|
||||
config UART6_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART6_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART6_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART6_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART6_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART6_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART6_IFLOWCONTROL
|
||||
bool "UART6 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART6 RTS flow control
|
||||
|
||||
config UART6_OFLOWCONTROL
|
||||
bool "UART6 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART6 CTS flow control
|
||||
|
||||
config UART6_DMA
|
||||
bool "UART6 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART6
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART7 Configuration"
|
||||
depends on UART7_SERIALDRIVER
|
||||
|
||||
config UART7_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART7_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART7_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART7_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART7_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART7_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART7_IFLOWCONTROL
|
||||
bool "UART7 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART7 RTS flow control
|
||||
|
||||
config UART7_OFLOWCONTROL
|
||||
bool "UART7 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART7 CTS flow control
|
||||
|
||||
config UART7_DMA
|
||||
bool "UART7 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART7
|
||||
|
||||
endmenu
|
||||
|
||||
menu "UART8 Configuration"
|
||||
depends on UART8_SERIALDRIVER
|
||||
|
||||
config UART8_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config UART8_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config UART8_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the UART.
|
||||
|
||||
config UART8_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config UART8_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config UART8_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config UART8_IFLOWCONTROL
|
||||
bool "UART8 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable UART8 RTS flow control
|
||||
|
||||
config UART8_OFLOWCONTROL
|
||||
bool "UART8 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable UART8 CTS flow control
|
||||
|
||||
config UART8_DMA
|
||||
bool "UART8 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on UART8
|
||||
|
||||
endmenu
|
703
drivers/serial/Kconfig-usart
Normal file
703
drivers/serial/Kconfig-usart
Normal file
|
@ -0,0 +1,703 @@
|
|||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
config USART0_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART1_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART2_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART3_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART4_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART5_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART6_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART7_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART8_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
config USART9_SERIALDRIVER
|
||||
bool
|
||||
default n
|
||||
select MCU_SERIAL
|
||||
|
||||
menu "USART0 Configuration"
|
||||
depends on USART0_SERIALDRIVER
|
||||
|
||||
config USART0_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART0_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART0_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART0_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART0_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART0_2STOP
|
||||
int "use 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART0_IFLOWCONTROL
|
||||
bool "USART0 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART0 RTS flow control
|
||||
|
||||
config USART0_OFLOWCONTROL
|
||||
bool "USART0 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART0 CTS flow control
|
||||
|
||||
config USART0_DMA
|
||||
bool "USART0 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART0
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART1 Configuration"
|
||||
depends on USART1_SERIALDRIVER
|
||||
|
||||
config USART1_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART1_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART1_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART1_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART1_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART1_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART1_IFLOWCONTROL
|
||||
bool "USART1 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART1 RTS flow control
|
||||
|
||||
config USART1_OFLOWCONTROL
|
||||
bool "USART1 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART1 CTS flow control
|
||||
|
||||
config USART1_DMA
|
||||
bool "USART1 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART1
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART2 Configuration"
|
||||
depends on USART2_SERIALDRIVER
|
||||
|
||||
config USART2_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART2_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART2_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART2_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART2_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART2_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART2_IFLOWCONTROL
|
||||
bool "USART2 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART2 RTS flow control
|
||||
|
||||
config USART2_OFLOWCONTROL
|
||||
bool "USART2 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART2 CTS flow control
|
||||
|
||||
config USART2_DMA
|
||||
bool "USART2 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART2
|
||||
endmenu
|
||||
|
||||
menu "USART3 Configuration"
|
||||
depends on USART3_SERIALDRIVER
|
||||
|
||||
config USART3_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART3_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART3_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART3_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART3_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART3_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART3_IFLOWCONTROL
|
||||
bool "USART3 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART3 RTS flow control
|
||||
|
||||
config USART3_OFLOWCONTROL
|
||||
bool "USART3 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART3 CTS flow control
|
||||
|
||||
config USART3_DMA
|
||||
bool "USART3 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART3
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART4 Configuration"
|
||||
depends on USART4_SERIALDRIVER
|
||||
|
||||
config USART4_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART4_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART4_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART4_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART4_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART4_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART4_IFLOWCONTROL
|
||||
bool "USART4 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART4 RTS flow control
|
||||
|
||||
config USART4_OFLOWCONTROL
|
||||
bool "USART4 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART4 CTS flow control
|
||||
|
||||
config USART4_DMA
|
||||
bool "USART4 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART4
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART5 Configuration"
|
||||
depends on USART5_SERIALDRIVER
|
||||
|
||||
config USART5_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART5_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART5_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART5_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART5_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART5_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART5_IFLOWCONTROL
|
||||
bool "USART5 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART5 RTS flow control
|
||||
|
||||
config USART5_OFLOWCONTROL
|
||||
bool "USART5 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART5 CTS flow control
|
||||
|
||||
config USART5_DMA
|
||||
bool "USART5 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART5
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART6 Configuration"
|
||||
depends on USART6_SERIALDRIVER
|
||||
|
||||
config USART6_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART6_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART6_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART6_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART6_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART6_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART6_IFLOWCONTROL
|
||||
bool "USART6 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART6 RTS flow control
|
||||
|
||||
config USART6_OFLOWCONTROL
|
||||
bool "USART6 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART6 CTS flow control
|
||||
|
||||
config USART6_DMA
|
||||
bool "USART6 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART6
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART7 Configuration"
|
||||
depends on USART7_SERIALDRIVER
|
||||
|
||||
config USART7_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART7_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART7_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART7_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART7_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART7_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART7_IFLOWCONTROL
|
||||
bool "USART7 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART7 RTS flow control
|
||||
|
||||
config USART7_OFLOWCONTROL
|
||||
bool "USART7 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART7 CTS flow control
|
||||
|
||||
config USART7_DMA
|
||||
bool "USART7 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART7
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART8 Configuration"
|
||||
depends on USART8_SERIALDRIVER
|
||||
|
||||
config USART8_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART8_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART8_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART8_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART8_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART8_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART8_IFLOWCONTROL
|
||||
bool "USART8 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART8 RTS flow control
|
||||
|
||||
config USART8_OFLOWCONTROL
|
||||
bool "USART8 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART8 CTS flow control
|
||||
|
||||
config USART8_DMA
|
||||
bool "USART8 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART8
|
||||
|
||||
endmenu
|
||||
|
||||
menu "USART9 Configuration"
|
||||
depends on USART9_SERIALDRIVER
|
||||
|
||||
config USART9_RXBUFSIZE
|
||||
int "Receive buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered as they are received. This specifies
|
||||
the size of the receive buffer.
|
||||
|
||||
config USART9_TXBUFSIZE
|
||||
int "Transmit buffer size"
|
||||
default 256
|
||||
---help---
|
||||
Characters are buffered before being sent. This specifies
|
||||
the size of the transmit buffer.
|
||||
|
||||
config USART9_BAUD
|
||||
int "BAUD rate"
|
||||
default 115200
|
||||
---help---
|
||||
The configured BAUD of the USART.
|
||||
|
||||
config USART9_BITS
|
||||
int "Character size"
|
||||
default 8
|
||||
---help---
|
||||
The number of bits. Must be either 7 or 8.
|
||||
|
||||
config USART9_PARITY
|
||||
int "Parity setting"
|
||||
default 0
|
||||
range 0 2
|
||||
---help---
|
||||
0=no parity, 1=odd parity, 2=even parity
|
||||
|
||||
config USART9_2STOP
|
||||
int "Uses 2 stop bits"
|
||||
default 0
|
||||
---help---
|
||||
1=Two stop bits
|
||||
|
||||
config USART9_IFLOWCONTROL
|
||||
bool "USART9 RTS flow control"
|
||||
default n
|
||||
select SERIAL_IFLOWCONTROL
|
||||
---help---
|
||||
Enable USART9 RTS flow control
|
||||
|
||||
config USART9_OFLOWCONTROL
|
||||
bool "USART9 CTS flow control"
|
||||
default n
|
||||
select SERIAL_OFLOWCONTROL
|
||||
---help---
|
||||
Enable USART9 CTS flow control
|
||||
|
||||
config USART9_DMA
|
||||
bool "USART9 DMA support"
|
||||
default n
|
||||
select SERIAL_DMA
|
||||
---help---
|
||||
Enable DMA transfers on USART9
|
||||
|
||||
endmenu
|
Loading…
Reference in a new issue