One of these is from 'source'ing a file within an 'if SERIAL', and then
adding another 'depends on SERIAL' within it.
'if FOO' is just shorthand for adding 'depends on FOO' to each item
within the 'if'. Dependencies on menus work similarly. There are no
"conditional includes" in Kconfig, so 'if FOO' has no special meaning
around a source. Conditional includes wouldn't be possible, because an
if condition could include (directly or indirectly) forward references
to symbols not defined yet.
Tip: When adding a symbol, check its dependencies in the menuconfig
('ninja menuconfig', then / to jump to the symbol). The menuconfig also
shows how the file with the symbol got included, so if you see
duplicated dependencies, it's easy to hunt down where they come from.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
120 lines
2.6 KiB
Plaintext
120 lines
2.6 KiB
Plaintext
# Kconfig - serial driver configuration options
|
|
|
|
#
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig SERIAL
|
|
bool "Serial Drivers"
|
|
help
|
|
Enable options for serial drivers.
|
|
|
|
if SERIAL
|
|
|
|
comment "Capabilities"
|
|
|
|
config SERIAL_HAS_DRIVER
|
|
bool
|
|
help
|
|
This is an option to be enabled by individual serial driver
|
|
to signal that there is a serial driver. This is being used
|
|
by other drivers which are dependent on serial.
|
|
|
|
config SERIAL_SUPPORT_INTERRUPT
|
|
bool
|
|
help
|
|
This is an option to be enabled by individual serial driver
|
|
to signal that the driver and hardware supports interrupts.
|
|
|
|
config UART_ASYNC_API
|
|
bool "Enable new asynchronous UART API [EXPERIMENTAL]"
|
|
help
|
|
This option enables new asynchronous UART API.
|
|
|
|
if UART_ASYNC_API=n
|
|
config UART_INTERRUPT_DRIVEN
|
|
bool "Enable UART Interrupt support"
|
|
depends on SERIAL_SUPPORT_INTERRUPT
|
|
help
|
|
This option enables interrupt support for UART allowing console
|
|
input and other UART based drivers.
|
|
endif
|
|
|
|
config UART_LINE_CTRL
|
|
bool "Enable Serial Line Control API"
|
|
help
|
|
This enables the API for apps to control the serial line,
|
|
such as baud rate, CTS and RTS.
|
|
|
|
Implementation is up to individual driver.
|
|
|
|
Says no if not sure.
|
|
|
|
config UART_DRV_CMD
|
|
bool "Enable driver commands API"
|
|
help
|
|
This enables the API to send extra commands to drivers.
|
|
This allows drivers to expose hardware specific functions.
|
|
|
|
Says no if not sure.
|
|
|
|
comment "Serial Drivers"
|
|
|
|
source "drivers/serial/Kconfig.ns16550"
|
|
|
|
source "drivers/serial/Kconfig.mcux"
|
|
|
|
source "drivers/serial/Kconfig.mcux_lpc_usart"
|
|
|
|
source "drivers/serial/Kconfig.mcux_lpsci"
|
|
|
|
source "drivers/serial/Kconfig.mcux_lpuart"
|
|
|
|
source "drivers/serial/Kconfig.miv"
|
|
|
|
source "drivers/serial/Kconfig.imx"
|
|
|
|
source "drivers/serial/Kconfig.stellaris"
|
|
|
|
source "drivers/serial/Kconfig.native_posix"
|
|
|
|
source "drivers/serial/Kconfig.nsim"
|
|
|
|
source "drivers/serial/Kconfig.usart_sam"
|
|
|
|
source "drivers/serial/Kconfig.uart_sam"
|
|
|
|
source "drivers/serial/Kconfig.qmsi"
|
|
|
|
source "drivers/serial/Kconfig.stm32"
|
|
|
|
source "drivers/serial/Kconfig.nrfx"
|
|
|
|
source "drivers/serial/Kconfig.altera_jtag"
|
|
|
|
source "drivers/serial/Kconfig.cc32xx"
|
|
|
|
source "drivers/serial/Kconfig.cmsdk_apb"
|
|
|
|
source "drivers/serial/Kconfig.sifive"
|
|
|
|
source "drivers/serial/Kconfig.esp32"
|
|
|
|
source "drivers/serial/Kconfig.gecko"
|
|
|
|
source "drivers/serial/Kconfig.leuart_gecko"
|
|
|
|
source "drivers/serial/Kconfig.msp432p4xx"
|
|
|
|
source "drivers/serial/Kconfig.sam0"
|
|
|
|
source "drivers/serial/Kconfig.psoc6"
|
|
|
|
source "drivers/serial/Kconfig.pl011"
|
|
|
|
source "drivers/serial/Kconfig.rv32m1_lpuart"
|
|
|
|
endif # SERIAL
|