2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2012-04-13 16:27:44 +02:00
|
|
|
|
2020-02-08 08:30:09 +01:00
|
|
|
config ARCH_HAVE_SERIAL_TERMIOS
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2020-02-15 14:38:35 +01:00
|
|
|
menuconfig SERIAL
|
|
|
|
bool "Serial Driver Support"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Front-end character drivers for chip-specific UARTs. This provide
|
|
|
|
some TTY-like functionality and are commonly used (but not required
|
|
|
|
for) the NuttX system console. See also include/nuttx/serial/serial.h
|
|
|
|
|
2020-02-08 08:30:09 +01:00
|
|
|
if SERIAL
|
|
|
|
|
2019-01-27 17:50:15 +01:00
|
|
|
config SERIAL_PM_ACTIVITY_DOMAIN
|
|
|
|
int "PM activity domain"
|
|
|
|
default 0
|
|
|
|
depends on PM
|
|
|
|
---help---
|
|
|
|
When characters are received on a console device, pm_activity()
|
2019-09-17 18:46:23 +02:00
|
|
|
will be called with this PM domain.
|
2019-01-27 17:50:15 +01:00
|
|
|
|
|
|
|
config SERIAL_PM_ACTIVITY_PRIORITY
|
2019-09-17 18:46:23 +02:00
|
|
|
int "PM activity priority when receive character"
|
2019-01-27 17:50:15 +01:00
|
|
|
default 6
|
|
|
|
depends on PM
|
|
|
|
---help---
|
|
|
|
When characters are received on a console device, pm_activity()
|
2019-09-17 18:46:23 +02:00
|
|
|
will be called with this PM priority.
|
2019-01-27 17:50:15 +01:00
|
|
|
|
2013-01-31 17:52:20 +01:00
|
|
|
config SERIAL_REMOVABLE
|
|
|
|
bool
|
2016-06-21 01:49:16 +02:00
|
|
|
default n
|
|
|
|
|
|
|
|
config SERIAL_CONSOLE
|
|
|
|
bool
|
|
|
|
default n
|
2013-01-31 17:52:20 +01:00
|
|
|
|
2023-10-31 13:12:02 +01:00
|
|
|
config SERIAL_GDBSTUB
|
|
|
|
bool "GDBSTUB Serial support"
|
|
|
|
depends on ARCH_HAVE_DEBUG
|
|
|
|
default n
|
|
|
|
|
|
|
|
config SERIAL_GDBSTUB_PATH
|
|
|
|
string "GDBSTUB Serial path"
|
|
|
|
depends on SERIAL_GDBSTUB
|
|
|
|
default "/dev/ttyS1"
|
|
|
|
---help---
|
|
|
|
The path to the serial device that will be used for GDB stub.
|
|
|
|
|
2023-03-08 12:53:36 +01:00
|
|
|
menuconfig UART_PL011
|
|
|
|
bool "PL011 Chip support"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if UART_PL011
|
|
|
|
source "drivers/serial/Kconfig-pl011"
|
|
|
|
endif
|
|
|
|
|
2023-12-13 13:37:59 +01:00
|
|
|
menuconfig CMSDK_UART
|
|
|
|
bool "CMSDK UART Chip support"
|
|
|
|
select ARCH_HAVE_SERIAL_TERMIOS
|
|
|
|
default n
|
|
|
|
|
|
|
|
if CMSDK_UART
|
|
|
|
source "drivers/serial/Kconfig-cmsdk"
|
|
|
|
endif # CMSDK_UART
|
|
|
|
|
2018-03-14 17:33:27 +01:00
|
|
|
menuconfig 16550_UART
|
2012-04-13 16:27:44 +02:00
|
|
|
bool "16550 UART Chip support"
|
2019-01-27 17:40:54 +01:00
|
|
|
select ARCH_HAVE_SERIAL_TERMIOS
|
2012-04-13 16:27:44 +02:00
|
|
|
default n
|
|
|
|
|
|
|
|
if 16550_UART
|
2021-07-20 13:10:10 +02:00
|
|
|
source "drivers/serial/Kconfig-16550"
|
2015-08-03 11:42:39 +02:00
|
|
|
endif
|
2012-04-13 16:27:44 +02:00
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
#
|
2012-09-05 19:20:19 +02:00
|
|
|
# MCU serial peripheral driver?
|
2012-09-05 14:45:35 +02:00
|
|
|
#
|
|
|
|
|
2016-05-25 18:48:33 +02:00
|
|
|
config OTHER_UART_SERIALDRIVER
|
2014-10-21 19:38:51 +02:00
|
|
|
bool
|
|
|
|
default n
|
2014-11-20 23:24:30 +01:00
|
|
|
select MCU_SERIAL
|
2014-10-21 19:38:51 +02:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
config MCU_SERIAL
|
|
|
|
bool
|
2014-03-06 16:17:11 +01:00
|
|
|
default n
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2019-11-02 18:30:33 +01:00
|
|
|
config RPMSG_UART
|
2023-10-27 12:56:33 +02:00
|
|
|
bool "UART RPMSG support"
|
2019-11-02 18:30:33 +01:00
|
|
|
default n
|
2024-02-04 07:30:39 +01:00
|
|
|
depends on RPMSG
|
2019-11-02 18:30:33 +01:00
|
|
|
select ARCH_HAVE_SERIAL_TERMIOS
|
|
|
|
select SERIAL_RXDMA
|
|
|
|
select SERIAL_TXDMA
|
|
|
|
select SERIAL_REMOVABLE
|
|
|
|
select SERIAL_IFLOWCONTROL
|
|
|
|
|
2023-09-21 13:59:38 +02:00
|
|
|
config RPMSG_UART_CONSOLE
|
2023-10-27 12:56:33 +02:00
|
|
|
bool "UART RPMSG console support"
|
2023-09-21 13:59:38 +02:00
|
|
|
default n
|
|
|
|
depends on RPMSG_UART
|
|
|
|
---help---
|
2023-10-27 12:56:33 +02:00
|
|
|
Register the UART RPMSG device as /dev/console so that is will be used
|
2023-09-21 13:59:38 +02:00
|
|
|
as the console device.
|
|
|
|
NOTE: support for this option must be implemented in the board logic by
|
|
|
|
setting the \"isconsole\" argument in the uart_rpmsg_init() function to true.
|
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
#
|
|
|
|
# Standard serial driver configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
config STANDARD_SERIAL
|
|
|
|
bool "Enable standard \"upper-half\" serial driver"
|
2023-07-15 19:04:21 +02:00
|
|
|
default MCU_SERIAL
|
2012-09-05 19:20:19 +02:00
|
|
|
---help---
|
|
|
|
Enable the standard, upper-half serial driver used by most MCU serial peripherals.
|
|
|
|
|
2013-04-25 23:52:48 +02:00
|
|
|
config SERIAL_NPOLLWAITERS
|
2012-09-05 19:20:19 +02:00
|
|
|
int "Number of poll threads"
|
2021-05-07 14:09:33 +02:00
|
|
|
default 4
|
2012-09-05 19:20:19 +02:00
|
|
|
---help---
|
|
|
|
Maximum number of threads than can be waiting for POLL events.
|
2021-05-07 14:09:33 +02:00
|
|
|
Default: 4
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2014-12-27 14:43:06 +01:00
|
|
|
config SERIAL_IFLOWCONTROL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2019-05-30 21:44:08 +02:00
|
|
|
config SERIAL_RS485CONTROL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Use RTS pin to control RS485 direction (Asserted while transmitting).
|
|
|
|
|
2014-12-27 14:43:06 +01:00
|
|
|
config SERIAL_OFLOWCONTROL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2019-04-24 20:11:40 +02:00
|
|
|
config SERIAL_TXDMA
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config SERIAL_RXDMA
|
2015-11-12 21:16:19 +01:00
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2014-12-27 14:43:06 +01:00
|
|
|
config SERIAL_IFLOWCONTROL_WATERMARKS
|
|
|
|
bool "RX flow control watermarks"
|
|
|
|
default n
|
|
|
|
depends on SERIAL_IFLOWCONTROL
|
|
|
|
---help---
|
|
|
|
Call the "lower half" rxflowcontrol method whenever the number of
|
|
|
|
characters in the serial RX buffer falls above an upper water mark
|
|
|
|
level or below a lower watermark level. The default behavior is to
|
2014-12-28 01:58:18 +01:00
|
|
|
call the rxflowcontrol method only when the RX buffer is empty or
|
|
|
|
full.
|
2014-12-27 14:43:06 +01:00
|
|
|
|
|
|
|
if SERIAL_IFLOWCONTROL_WATERMARKS
|
|
|
|
|
|
|
|
config SERIAL_IFLOWCONTROL_LOWER_WATERMARK
|
|
|
|
int "RX lower Watermark (percent)"
|
|
|
|
default 10
|
2017-10-18 14:49:11 +02:00
|
|
|
range 1 99
|
2014-12-27 14:43:06 +01:00
|
|
|
---help---
|
|
|
|
Call the rxflowcontrol method then there are this amount (or or less)
|
|
|
|
data buffered in the serial drivers RX buffer. This is expressed
|
|
|
|
as a percentage of the total size of the RX buffer which may vary
|
|
|
|
from instance-to-instance.
|
|
|
|
|
|
|
|
config SERIAL_IFLOWCONTROL_UPPER_WATERMARK
|
|
|
|
int "RX upper Watermark (percent)"
|
|
|
|
default 90
|
2017-10-18 14:49:11 +02:00
|
|
|
range 1 99
|
2014-12-27 14:43:06 +01:00
|
|
|
---help---
|
|
|
|
Call the rxflowcontrol method then there are this amount (or more)
|
|
|
|
data buffered in the serial drivers RX buffer. This is expressed
|
|
|
|
as a percentage of the total size of the RX buffer which may vary
|
|
|
|
from instance-to-instance.
|
|
|
|
|
|
|
|
endif # SERIAL_IFLOWCONTROL_WATERMARKS
|
|
|
|
|
2013-04-25 23:52:48 +02:00
|
|
|
config SERIAL_TIOCSERGSTRUCT
|
|
|
|
bool "Support TIOCSERGSTRUCT"
|
|
|
|
default n
|
2016-06-11 22:14:08 +02:00
|
|
|
depends on DEBUG_FEATURES && (MCU_SERIAL || 16550_UART)
|
2013-04-25 23:52:48 +02:00
|
|
|
---help---
|
|
|
|
As a debug option, many serial bottom half drivers support the TIOCSERGSTRUCT
|
2013-04-26 04:09:15 +02:00
|
|
|
that allows you to get the internal driver data structure. By default, this
|
2013-04-25 23:52:48 +02:00
|
|
|
IOCTL is not supported in order to reduce footprint. But if (1) the driver
|
|
|
|
supports the TIOCSERGSTRUCT ioctl, and (2) this option is selected, then
|
|
|
|
support for the TIOCSERGSTRUCT will be enabled.
|
|
|
|
|
2014-10-27 18:31:16 +01:00
|
|
|
config SERIAL_TERMIOS
|
|
|
|
bool "Serial TERMIOS support"
|
|
|
|
depends on ARCH_HAVE_SERIAL_TERMIOS
|
|
|
|
default n
|
|
|
|
---help---
|
2023-03-20 03:38:29 +01:00
|
|
|
If this is not defined, then the terminal hardware settings
|
|
|
|
(baud, parity, flow control) are not configurable at runtime.
|
|
|
|
Note: other software settings (echo, \r\n<->\n, break, tcflush)
|
|
|
|
are always supported.
|
2014-10-27 18:31:16 +01:00
|
|
|
|
2021-12-15 06:40:45 +01:00
|
|
|
config TTY_LAUNCH
|
|
|
|
bool "Enable feature TTY launch program"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If select this, then user can launch a program with a special input.
|
|
|
|
|
|
|
|
if TTY_LAUNCH
|
|
|
|
|
|
|
|
config TTY_LAUNCH_CHAR
|
|
|
|
hex "TTY launch program characters"
|
|
|
|
default 0x12
|
|
|
|
---help---
|
|
|
|
Use Ctrl-R 0x12 inputs to determine whether launch a program
|
|
|
|
|
|
|
|
config TTY_LAUNCH_ARGS
|
|
|
|
string "TTY launch argument list"
|
|
|
|
default INIT_ARGS
|
|
|
|
---help---
|
|
|
|
The argument list for user applications. e.g.:
|
|
|
|
"\"arg1\",\"arg2\",\"arg3\""
|
|
|
|
|
|
|
|
config TTY_LAUNCH_PRIORITY
|
|
|
|
int "TTY launch program priority"
|
|
|
|
default INIT_PRIORITY
|
|
|
|
|
|
|
|
config TTY_LAUNCH_STACKSIZE
|
2023-02-09 09:01:01 +01:00
|
|
|
int "TTY launch program stack size"
|
2021-12-15 06:40:45 +01:00
|
|
|
default INIT_STACKSIZE
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "TTY launch method"
|
|
|
|
default TTY_LAUNCH_ENTRY
|
|
|
|
|
|
|
|
config TTY_LAUNCH_ENTRY
|
|
|
|
bool "TTY launch program"
|
|
|
|
|
|
|
|
config TTY_LAUNCH_FILE
|
|
|
|
bool "TTY launch file"
|
|
|
|
depends on !BINFMT_DISABLE
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config TTY_LAUNCH_ENTRYPOINT
|
|
|
|
string "TTY launch program entry"
|
|
|
|
depends on TTY_LAUNCH_ENTRY
|
|
|
|
default INIT_ENTRYPOINT
|
|
|
|
|
|
|
|
config TTY_LAUNCH_ENTRYNAME
|
|
|
|
string "TTY launch program name"
|
|
|
|
depends on TTY_LAUNCH_ENTRY
|
|
|
|
default TTY_LAUNCH_ENTRYPOINT
|
|
|
|
|
|
|
|
config TTY_LAUNCH_FILEPATH
|
|
|
|
string "TTY launch file path"
|
|
|
|
depends on TTY_LAUNCH_FILE
|
|
|
|
default INIT_FILEPATH
|
|
|
|
---help---
|
|
|
|
The name of the entry point for user applications. For the example
|
|
|
|
applications this is of the form 'app_main' where 'app' is the application
|
2022-03-18 23:51:11 +01:00
|
|
|
name. If not defined, INIT_ENTRYPOINT defaults to "main".
|
2021-12-15 06:40:45 +01:00
|
|
|
|
|
|
|
endif # TTY_LAUNCH
|
|
|
|
|
2021-04-29 11:02:34 +02:00
|
|
|
config TTY_FORCE_PANIC
|
|
|
|
bool "Enable TTY force crash"
|
|
|
|
default n
|
|
|
|
depends on DEBUG_FEATURES
|
|
|
|
---help---
|
|
|
|
This is for debugging system busyloop or deadlock, when the shell can't run,
|
|
|
|
then use this force crash the system to see the dumplog.
|
|
|
|
|
|
|
|
config TTY_FORCE_PANIC_CHAR
|
|
|
|
hex "TTY force crash characters"
|
2021-05-13 14:56:27 +02:00
|
|
|
default 0x1F
|
2021-04-29 11:02:34 +02:00
|
|
|
depends on TTY_FORCE_PANIC
|
|
|
|
---help---
|
2021-05-13 14:56:27 +02:00
|
|
|
Use Ctrl-? 0x1F inputs to determine whether panic system
|
2021-04-29 11:02:34 +02:00
|
|
|
|
2018-08-28 20:15:31 +02:00
|
|
|
config TTY_SIGINT
|
|
|
|
bool "Support SIGINT"
|
2018-08-28 17:15:29 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2018-08-28 18:51:34 +02:00
|
|
|
Whether support Ctrl-c/x event. Enabled automatically for console
|
|
|
|
devices. May be enabled for other serial devices using the ISIG bit
|
|
|
|
in the Termios c_lflag.
|
|
|
|
|
2018-08-28 20:39:03 +02:00
|
|
|
REVISIT: This implementation is compliant but incomplete. The
|
|
|
|
c_lflag ISIG bit normally enables/disables INTR, QUIT, SUSP, and
|
|
|
|
DSUSP character processing. The relationship between these names,
|
|
|
|
standard signals, and typical key presses are as follows:
|
2018-08-28 18:51:34 +02:00
|
|
|
|
|
|
|
INTR SIGINT Ctrl-C ETX(0x03) Interrupt
|
|
|
|
KILL SIGKILL Ctrl-U NAK(0x15) Kill
|
|
|
|
QUIT SIGQUIT Ctrl-\ FS (0x1c) Quit
|
2020-10-29 05:53:41 +01:00
|
|
|
SUSP SIGTSTP Ctrl-Z SUB(0x1a) Suspend
|
|
|
|
DSUSP SIGTSTP Ctrl-Y EM (0x19) Delayed suspend
|
2018-08-28 18:51:34 +02:00
|
|
|
|
2018-08-28 20:15:31 +02:00
|
|
|
Additional requirements:
|
|
|
|
- SIGKILL cannot be caught or ignored. Compared to SIGTERM which
|
|
|
|
is like SIGKILL but can be caught or ignored.
|
|
|
|
- SIGQUIT is like SIGINT but causes generation of a core dump
|
2020-10-29 05:53:41 +01:00
|
|
|
- SIGSTOP cannot be caught or ignored. SIGTSTP is like SIGSTOP but
|
2020-10-29 07:17:36 +01:00
|
|
|
can be caught or ignored.
|
2018-08-28 20:15:31 +02:00
|
|
|
- The delayed suspend (DSUSD) is like suspend (SUPD), except that
|
2018-08-28 18:51:34 +02:00
|
|
|
the suspension is delayed until the next read operation
|
|
|
|
|
|
|
|
Ctrl-D (EOT 0x04) normally should not generate a signal but, instead,
|
2018-08-28 20:15:31 +02:00
|
|
|
should cause an immediate End-of-File result.
|
2018-08-28 17:15:29 +02:00
|
|
|
|
2018-08-28 20:15:31 +02:00
|
|
|
config TTY_SIGINT_CHAR
|
2018-09-02 23:36:25 +02:00
|
|
|
hex "Serial parse SIGINT characters"
|
|
|
|
default 0x03 if SERIAL_CONSOLE
|
|
|
|
default 0x04 if !SERIAL_CONSOLE
|
2018-08-28 20:15:31 +02:00
|
|
|
depends on TTY_SIGINT
|
2018-08-28 17:15:29 +02:00
|
|
|
---help---
|
2018-09-02 23:36:25 +02:00
|
|
|
Use ASCII 0x03 (Ctrl-c) or 0x04 (ctrl-d) inputs to determine whether
|
|
|
|
to send a SIGINT event. Other characters may also be selected.
|
2018-08-28 17:15:29 +02:00
|
|
|
|
|
|
|
REVISIT: Traditionally Ctrl-C would generate SIGINT. Ctrl-D is the
|
|
|
|
End-of-File character that should close the stream.
|
|
|
|
|
2020-10-29 05:53:41 +01:00
|
|
|
config TTY_SIGTSTP
|
|
|
|
bool "Support SIGTSTP"
|
2018-09-02 23:36:25 +02:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Whether support Ctrl-z event. Enabled automatically for console
|
|
|
|
devices. May be enabled for other serial devices using the ISIG bit
|
|
|
|
in the Termios c_lflag.
|
|
|
|
|
|
|
|
REVISIT: This implementation is compliant but incomplete. The
|
|
|
|
c_lflag ISIG bit normally enables/disables INTR, QUIT, SUSP, and
|
|
|
|
DSUSP character processing. The relationship between these names,
|
|
|
|
standard signals, and typical key presses are as follows:
|
|
|
|
|
|
|
|
INTR SIGINT Ctrl-C ETX(0x03) Interrupt
|
|
|
|
KILL SIGKILL Ctrl-U NAK(0x15) Kill
|
|
|
|
QUIT SIGQUIT Ctrl-\ FS (0x1c) Quit
|
2020-10-29 05:53:41 +01:00
|
|
|
SUSP SIGTSTP Ctrl-Z SUB(0x1a) Suspend
|
|
|
|
DSUSP SIGTSTP Ctrl-Y EM (0x19) Delayed suspend
|
2018-09-02 23:36:25 +02:00
|
|
|
|
|
|
|
Additional requirements:
|
|
|
|
- SIGKILL cannot be caught or ignored. Compared to SIGTERM which
|
|
|
|
is like SIGKILL but can be caught or ignored.
|
|
|
|
- SIGQUIT is like SIGINT but causes generation of a core dump
|
2020-10-29 05:53:41 +01:00
|
|
|
- SIGSTOP cannot be caught or ignored. SIGTSTP is like SIGSTOP but
|
2020-10-29 07:17:36 +01:00
|
|
|
can be caught or ignored.
|
2018-09-02 23:36:25 +02:00
|
|
|
- The delayed suspend (DSUSD) is like suspend (SUPD), except that
|
|
|
|
the suspension is delayed until the next read operation
|
|
|
|
|
2020-10-29 05:53:41 +01:00
|
|
|
config TTY_SIGTSTP_CHAR
|
|
|
|
hex "Serial parse SIGTSTP characters"
|
2018-09-02 23:36:25 +02:00
|
|
|
default 0x1a
|
2020-10-29 05:53:41 +01:00
|
|
|
depends on TTY_SIGTSTP
|
2018-09-02 23:36:25 +02:00
|
|
|
---help---
|
2020-10-29 05:53:41 +01:00
|
|
|
Use ASCII 0x1a (Ctrl-z) input to determine whether to send a SIGTSTP
|
2018-09-02 23:36:25 +02:00
|
|
|
event. Other characters may also be selected.
|
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
#
|
2013-07-24 20:27:12 +02:00
|
|
|
# Serial console selection
|
2012-09-05 19:20:19 +02:00
|
|
|
#
|
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
choice
|
|
|
|
prompt "Serial console"
|
2016-05-25 18:48:33 +02:00
|
|
|
default NO_SERIAL_CONSOLE if !OTHER_UART_SERIALDRIVER
|
|
|
|
default OTHER_SERIAL_CONSOLE if OTHER_UART_SERIALDRIVER
|
2012-09-05 19:20:19 +02:00
|
|
|
depends on MCU_SERIAL
|
2014-12-28 22:23:05 +01:00
|
|
|
#depends on DEV_CONSOLE - We may have serial console with no file system at all
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART_SERIAL_CONSOLE
|
|
|
|
bool "UART"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART0_SERIAL_CONSOLE
|
|
|
|
bool "UART0"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART0_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
|
|
|
config USART0_SERIAL_CONSOLE
|
|
|
|
bool "USART0"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART0_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
config UART1_SERIAL_CONSOLE
|
|
|
|
bool "UART1"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART1_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
config USART1_SERIAL_CONSOLE
|
|
|
|
bool "USART1"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART1_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
config UART2_SERIAL_CONSOLE
|
|
|
|
bool "UART2"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART2_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
config USART2_SERIAL_CONSOLE
|
|
|
|
bool "USART2"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART2_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
config UART3_SERIAL_CONSOLE
|
|
|
|
bool "UART3"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART3_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
config USART3_SERIAL_CONSOLE
|
|
|
|
bool "USART3"
|
2016-05-25 18:39:23 +02:00
|
|
|
depends on USART3_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
config UART4_SERIAL_CONSOLE
|
|
|
|
bool "UART4"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART4_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
config USART4_SERIAL_CONSOLE
|
|
|
|
bool "USART4"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART4_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
config UART5_SERIAL_CONSOLE
|
|
|
|
bool "UART5"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART5_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
config USART5_SERIAL_CONSOLE
|
|
|
|
bool "USART5"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART5_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
config UART6_SERIAL_CONSOLE
|
|
|
|
bool "UART6"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART6_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
config USART6_SERIAL_CONSOLE
|
|
|
|
bool "USART6"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART6_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2012-09-05 14:45:35 +02:00
|
|
|
|
2013-03-25 18:33:41 +01:00
|
|
|
config UART7_SERIAL_CONSOLE
|
|
|
|
bool "UART7"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART7_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2013-03-25 18:33:41 +01:00
|
|
|
|
|
|
|
config USART7_SERIAL_CONSOLE
|
|
|
|
bool "USART7"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART7_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2013-03-25 18:33:41 +01:00
|
|
|
|
2013-04-01 15:43:31 +02:00
|
|
|
config UART8_SERIAL_CONSOLE
|
|
|
|
bool "UART8"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART8_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2013-04-01 15:43:31 +02:00
|
|
|
|
|
|
|
config USART8_SERIAL_CONSOLE
|
|
|
|
bool "USART8"
|
2016-05-25 19:21:48 +02:00
|
|
|
depends on USART8_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2013-04-01 15:43:31 +02:00
|
|
|
|
2017-12-07 20:30:02 +01:00
|
|
|
config USART9_SERIAL_CONSOLE
|
|
|
|
bool "USART8"
|
|
|
|
depends on USART9_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
2018-03-14 17:33:27 +01:00
|
|
|
config LPUART0_SERIAL_CONSOLE
|
|
|
|
bool "LPUART0"
|
|
|
|
depends on LPUART0_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2014-03-06 16:17:11 +01:00
|
|
|
|
2018-03-14 17:33:27 +01:00
|
|
|
config LPUART1_SERIAL_CONSOLE
|
|
|
|
bool "LPUART1"
|
|
|
|
depends on LPUART1_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2014-03-06 16:17:11 +01:00
|
|
|
|
2018-03-14 17:33:27 +01:00
|
|
|
config LPUART2_SERIAL_CONSOLE
|
|
|
|
bool "LPUART2"
|
|
|
|
depends on LPUART2_SERIALDRIVER
|
2016-06-19 21:03:20 +02:00
|
|
|
select SERIAL_CONSOLE
|
2014-10-21 17:37:02 +02:00
|
|
|
|
2018-03-14 17:33:27 +01:00
|
|
|
config LPUART3_SERIAL_CONSOLE
|
|
|
|
bool "LPUART3"
|
|
|
|
depends on LPUART3_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART4_SERIAL_CONSOLE
|
|
|
|
bool "LPUART4"
|
|
|
|
depends on LPUART4_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART5_SERIAL_CONSOLE
|
|
|
|
bool "LPUART5"
|
|
|
|
depends on LPUART5_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART6_SERIAL_CONSOLE
|
|
|
|
bool "LPUART6"
|
|
|
|
depends on LPUART6_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART7_SERIAL_CONSOLE
|
|
|
|
bool "LPUART7"
|
|
|
|
depends on LPUART7_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART8_SERIAL_CONSOLE
|
|
|
|
bool "LPUART8"
|
|
|
|
depends on LPUART8_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
2022-07-22 10:25:50 +02:00
|
|
|
config LPUART9_SERIAL_CONSOLE
|
|
|
|
bool "LPUART9"
|
|
|
|
depends on LPUART9_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART10_SERIAL_CONSOLE
|
|
|
|
bool "LPUART10"
|
|
|
|
depends on LPUART10_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART11_SERIAL_CONSOLE
|
|
|
|
bool "LPUART11"
|
|
|
|
depends on LPUART11_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART12_SERIAL_CONSOLE
|
|
|
|
bool "LPUART12"
|
|
|
|
depends on LPUART12_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART13_SERIAL_CONSOLE
|
|
|
|
bool "LPUART13"
|
|
|
|
depends on LPUART13_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART14_SERIAL_CONSOLE
|
|
|
|
bool "LPUART14"
|
|
|
|
depends on LPUART14_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config LPUART15_SERIAL_CONSOLE
|
|
|
|
bool "LPUART15"
|
|
|
|
depends on LPUART15_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
2018-03-14 17:33:27 +01:00
|
|
|
config SCI0_SERIAL_CONSOLE
|
|
|
|
bool "SCI0"
|
|
|
|
depends on SCI0_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI1_SERIAL_CONSOLE
|
|
|
|
bool "SCI1"
|
|
|
|
depends on SCI1_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
2019-10-11 17:36:57 +02:00
|
|
|
config SCI2_SERIAL_CONSOLE
|
|
|
|
bool "SCI2"
|
|
|
|
depends on SCI2_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI3_SERIAL_CONSOLE
|
|
|
|
bool "SCI3"
|
|
|
|
depends on SCI3_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI4_SERIAL_CONSOLE
|
|
|
|
bool "SCI4"
|
|
|
|
depends on SCI4_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI5_SERIAL_CONSOLE
|
|
|
|
bool "SCI5"
|
|
|
|
depends on SCI5_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI6_SERIAL_CONSOLE
|
|
|
|
bool "SCI6"
|
|
|
|
depends on SCI6_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI7_SERIAL_CONSOLE
|
|
|
|
bool "SCI7"
|
|
|
|
depends on SCI7_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI8_SERIAL_CONSOLE
|
|
|
|
bool "SCI8"
|
|
|
|
depends on SCI8_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI9_SERIAL_CONSOLE
|
|
|
|
bool "SCI9"
|
|
|
|
depends on SCI9_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI10_SERIAL_CONSOLE
|
|
|
|
bool "SCI10"
|
|
|
|
depends on SCI10_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI11_SERIAL_CONSOLE
|
|
|
|
bool "SCI11"
|
|
|
|
depends on SCI11_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config SCI12_SERIAL_CONSOLE
|
|
|
|
bool "SCI12"
|
|
|
|
depends on SCI12_SERIALDRIVER
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
2018-03-14 17:33:27 +01:00
|
|
|
config OTHER_SERIAL_CONSOLE
|
|
|
|
bool "Other serial console"
|
|
|
|
select SERIAL_CONSOLE
|
|
|
|
|
|
|
|
config NO_SERIAL_CONSOLE
|
2012-09-05 19:20:19 +02:00
|
|
|
bool "No serial console"
|
|
|
|
|
2012-09-05 14:45:35 +02:00
|
|
|
endchoice
|
|
|
|
|
2013-07-24 20:27:12 +02:00
|
|
|
#
|
|
|
|
# U[S]ARTn_XYZ settings for MCU serial drivers
|
|
|
|
#
|
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
menu "UART Configuration"
|
2016-05-25 18:45:01 +02:00
|
|
|
depends on UART_SERIALDRIVER
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART_RXBUFSIZE
|
2013-03-25 18:33:41 +01:00
|
|
|
int "Receive buffer size"
|
2012-09-05 19:20:19 +02:00
|
|
|
default 256
|
2013-06-06 22:49:14 +02:00
|
|
|
---help---
|
|
|
|
Characters are buffered as they are received. This specifies
|
|
|
|
the size of the receive buffer.
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART_TXBUFSIZE
|
2013-04-01 15:43:31 +02:00
|
|
|
int "Transmit buffer size"
|
2012-09-05 19:20:19 +02:00
|
|
|
default 256
|
2013-06-06 22:49:14 +02:00
|
|
|
---help---
|
|
|
|
Characters are buffered before being sent. This specifies
|
|
|
|
the size of the transmit buffer.
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART_BAUD
|
2013-03-25 18:33:41 +01:00
|
|
|
int "BAUD rate"
|
2012-12-09 00:21:34 +01:00
|
|
|
default 115200
|
2013-06-06 22:49:14 +02:00
|
|
|
---help---
|
|
|
|
The configured BAUD of the UART.
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART_BITS
|
2013-03-25 18:33:41 +01:00
|
|
|
int "Character size"
|
2012-09-05 19:20:19 +02:00
|
|
|
default 8
|
2013-06-06 22:49:14 +02:00
|
|
|
---help---
|
|
|
|
The number of bits. Must be either 7 or 8.
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART_PARITY
|
2013-03-25 18:33:41 +01:00
|
|
|
int "Parity setting"
|
2012-09-05 19:20:19 +02:00
|
|
|
default 0
|
2014-04-01 19:24:15 +02:00
|
|
|
range 0 2
|
2013-06-06 22:49:14 +02:00
|
|
|
---help---
|
|
|
|
0=no parity, 1=odd parity, 2=even parity
|
2012-09-05 19:20:19 +02:00
|
|
|
|
|
|
|
config UART_2STOP
|
|
|
|
int "use 2 stop bits"
|
|
|
|
default 0
|
2013-06-06 22:49:14 +02:00
|
|
|
---help---
|
|
|
|
1=Two stop bits
|
|
|
|
|
|
|
|
config UART_IFLOWCONTROL
|
|
|
|
bool "UART RTS flow control"
|
|
|
|
default n
|
|
|
|
select SERIAL_IFLOWCONTROL
|
|
|
|
---help---
|
|
|
|
Enable UART RTS flow control
|
|
|
|
|
|
|
|
config UART_OFLOWCONTROL
|
|
|
|
bool "UART CTS flow control"
|
|
|
|
default n
|
|
|
|
select SERIAL_OFLOWCONTROL
|
|
|
|
---help---
|
|
|
|
Enable UART CTS flow control
|
2012-09-05 19:20:19 +02:00
|
|
|
|
2019-04-24 20:11:40 +02:00
|
|
|
config UART_TXDMA
|
|
|
|
bool "UART Tx DMA support"
|
|
|
|
default n
|
|
|
|
select SERIAL_TXDMA
|
|
|
|
---help---
|
2019-12-03 14:06:30 +01:00
|
|
|
Enable Tx DMA transfers on UART
|
2019-04-24 20:11:40 +02:00
|
|
|
|
|
|
|
config UART_RXDMA
|
|
|
|
bool "UART Rx DMA support"
|
2015-11-12 21:16:19 +01:00
|
|
|
default n
|
2019-04-24 20:11:40 +02:00
|
|
|
select SERIAL_RXDMA
|
2015-11-12 21:16:19 +01:00
|
|
|
---help---
|
2019-12-03 14:06:30 +01:00
|
|
|
Enable Rx DMA transfers on UART
|
2015-11-12 21:16:19 +01:00
|
|
|
|
2012-09-05 19:20:19 +02:00
|
|
|
endmenu
|
|
|
|
|
2021-07-20 13:10:10 +02:00
|
|
|
source "drivers/serial/Kconfig-uart"
|
|
|
|
source "drivers/serial/Kconfig-lpuart"
|
|
|
|
source "drivers/serial/Kconfig-usart"
|
|
|
|
source "drivers/serial/Kconfig-sci"
|
2016-07-15 14:48:10 +02:00
|
|
|
|
2023-08-21 05:33:01 +02:00
|
|
|
config RAM_UART
|
|
|
|
bool "RAM uart driver"
|
|
|
|
select SERIAL_RXDMA
|
|
|
|
select SERIAL_TXDMA
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
It uses the memory block in the kernel as a communication medium,
|
|
|
|
which can communicate between different processes or different CPUs
|
|
|
|
|
|
|
|
if RAM_UART
|
|
|
|
config RAM_UART_POLLING_INTERVAL
|
|
|
|
int "RAM uart buffer check interval"
|
|
|
|
default USEC_PER_TICK
|
|
|
|
---help---
|
|
|
|
Interval in milliseconds to check for new data on uart ram buffer
|
|
|
|
|
|
|
|
config RAM_UART_BUFSIZE
|
|
|
|
int "RAM_UART buffer size"
|
|
|
|
default 1024
|
|
|
|
---help---
|
|
|
|
The size of the RAM_UART buffer in bytes
|
|
|
|
|
|
|
|
config RAM_UART0
|
|
|
|
bool "RAM uart driver 0"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
RAM_UART device 0
|
|
|
|
|
|
|
|
config RAM_UART0_SLAVE
|
|
|
|
bool "RAM_UART0 is slave"
|
|
|
|
depends on RAM_UART0
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
The RAM uart0 is slave
|
|
|
|
|
|
|
|
config RAM_UART1
|
|
|
|
bool "RAM uart driver 1"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
RAM uart device 1
|
|
|
|
|
|
|
|
config RAM_UART1_SLAVE
|
|
|
|
bool "RAM uart1 is slave"
|
|
|
|
depends on RAM_UART1
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
The RAM uart1 is slave
|
|
|
|
|
|
|
|
config RAM_UART2
|
|
|
|
bool "RAM uart driver 2"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
RAM uart device 2
|
|
|
|
|
|
|
|
config RAM_UART2_SLAVE
|
|
|
|
bool "RAM uart2 is slave"
|
|
|
|
depends on RAM_UART2
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
The RAM uart2 is slave
|
|
|
|
|
|
|
|
config RAM_UART_BUFFER_SECTION
|
|
|
|
string "RAM uart buffer section name"
|
|
|
|
depends on RAM_UART0 || RAM_UART1 || RAM_UART2
|
|
|
|
---help---
|
|
|
|
The name of the section in the kernel memory block
|
|
|
|
|
|
|
|
endif # RAM_UART
|
|
|
|
|
2016-07-19 22:26:41 +02:00
|
|
|
menuconfig PSEUDOTERM
|
2019-09-20 02:19:18 +02:00
|
|
|
bool "Pseudo-Terminal (PTY) support"
|
2016-07-15 14:48:10 +02:00
|
|
|
default n
|
2016-07-19 22:26:40 +02:00
|
|
|
select PIPES
|
2016-07-16 18:43:44 +02:00
|
|
|
select ARCH_HAVE_SERIAL_TERMIOS
|
2016-07-15 14:48:10 +02:00
|
|
|
---help---
|
|
|
|
Enable support support for master and slave pseudo-terminal devices.
|
|
|
|
|
2016-07-19 22:26:41 +02:00
|
|
|
if PSEUDOTERM
|
|
|
|
|
2016-07-15 14:48:10 +02:00
|
|
|
config PSEUDOTERM_SUSV1
|
|
|
|
bool "SUSv1 style"
|
2022-02-06 18:31:01 +01:00
|
|
|
default y
|
2016-07-15 14:48:10 +02:00
|
|
|
---help---
|
|
|
|
PTYs as specified in the Single Unix Specification (SUSv1).
|
|
|
|
|
2016-07-15 19:15:33 +02:00
|
|
|
Master: /dev/ptmx (multiplexor)
|
2016-07-15 14:48:10 +02:00
|
|
|
Slave: /dev/pts/N
|
|
|
|
|
|
|
|
Where N is the minor number
|
|
|
|
|
2016-07-19 22:26:41 +02:00
|
|
|
config PSEUDOTERM_RXBUFSIZE
|
|
|
|
int "Pseudo-Terminal Rx buffer size"
|
|
|
|
default 256
|
|
|
|
---help---
|
|
|
|
Master-to-slave pipe buffer size. Default: 256
|
|
|
|
|
|
|
|
config PSEUDOTERM_TXBUFSIZE
|
|
|
|
int "Pseudo-Terminal Tx buffer size"
|
|
|
|
default 256
|
|
|
|
---help---
|
2016-07-21 21:34:54 +02:00
|
|
|
Slave-to-master pipe buffer size. Default: 256
|
2016-07-19 22:26:41 +02:00
|
|
|
|
|
|
|
endif # PSEUDOTERM
|
2020-02-08 08:30:09 +01:00
|
|
|
|
2021-05-25 15:57:41 +02:00
|
|
|
menuconfig UART_BTH4
|
2023-05-11 15:48:52 +02:00
|
|
|
bool "BT H4 UART Pseudo Device"
|
2021-05-25 15:57:41 +02:00
|
|
|
default n
|
2023-03-11 11:01:18 +01:00
|
|
|
depends on DRIVERS_BLUETOOTH
|
2021-05-25 15:57:41 +02:00
|
|
|
---help---
|
|
|
|
Enable support for Bluetooth H4 UART Pseudo Device(eg. /dev/ttyHCI).
|
|
|
|
This instantiates a serial-like interface over an existing bluetooth
|
|
|
|
controller via HCI interface. Useful for external Bluetooth
|
|
|
|
stacks working this way instead of the socket based interface.
|
|
|
|
|
|
|
|
if UART_BTH4
|
|
|
|
|
|
|
|
config UART_BTH4_TXBUFSIZE
|
2023-05-11 15:48:52 +02:00
|
|
|
int "BT H4 UART TX Buffer Size"
|
2022-09-05 16:50:37 +02:00
|
|
|
default 2048
|
2021-05-25 15:57:41 +02:00
|
|
|
---help---
|
2023-05-11 15:48:52 +02:00
|
|
|
H4 UART TX Buffer Size. Default: 2048
|
2021-05-25 15:57:41 +02:00
|
|
|
|
|
|
|
config UART_BTH4_RXBUFSIZE
|
2023-05-11 15:48:52 +02:00
|
|
|
int "BT H4 UART RX Buffer Size"
|
2022-09-05 16:50:37 +02:00
|
|
|
default 8096
|
2021-05-25 15:57:41 +02:00
|
|
|
---help---
|
2023-05-11 15:48:52 +02:00
|
|
|
H4 UART RX Buffer Size. Default: 8096
|
2021-05-25 15:57:41 +02:00
|
|
|
|
|
|
|
config UART_BTH4_NPOLLWAITERS
|
2023-05-11 15:48:52 +02:00
|
|
|
int "Number Of Poll Threads"
|
2021-05-25 15:57:41 +02:00
|
|
|
default 2
|
|
|
|
---help---
|
|
|
|
Maximum number of threads than can be waiting for POLL events.
|
|
|
|
Default: 2
|
|
|
|
|
|
|
|
endif # UART_BTH4
|
|
|
|
|
2023-05-11 15:48:52 +02:00
|
|
|
menuconfig UART_BTH5
|
|
|
|
bool "BT H5 UART Pseudo Device"
|
|
|
|
default n
|
|
|
|
depends on DRIVERS_BLUETOOTH
|
|
|
|
---help---
|
|
|
|
Enable support for Bluetooth H5 UART Pseudo Device(eg. /dev/ttyHCI).
|
|
|
|
This instantiates a serial-like interface over an existing bluetooth
|
|
|
|
controller via HCI interface. Useful for external Bluetooth
|
|
|
|
stacks working this way instead of the socket based interface.
|
|
|
|
|
|
|
|
if UART_BTH5
|
|
|
|
|
|
|
|
config UART_BTH5_TXBUFSIZE
|
|
|
|
int "BT H5 UART TX Buffer Size"
|
|
|
|
default 2048
|
|
|
|
---help---
|
|
|
|
H5 UART TX Buffer Size. Default: 2048
|
|
|
|
|
|
|
|
config UART_BTH5_TXWIN
|
|
|
|
int "BT H5 Uart TX Window Size"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
H5 UART TX Window Size. Default: 4
|
|
|
|
|
|
|
|
config UART_BTH5_RXBUFSIZE
|
|
|
|
int "BT H5 Uart RX Buffer Size"
|
|
|
|
default 8096
|
|
|
|
---help---
|
|
|
|
H5 UART RX Buffer Size. Default: 8096
|
|
|
|
|
|
|
|
config UART_BTH5_NPOLLWAITERS
|
|
|
|
int "Number Of Poll Threads"
|
|
|
|
default 2
|
|
|
|
---help---
|
|
|
|
Maximum number of threads than can be waiting for POLL events.
|
|
|
|
Default: 2
|
|
|
|
|
|
|
|
endif # UART_BTH5
|
|
|
|
|
2020-02-08 08:30:09 +01:00
|
|
|
endif # SERIAL
|