zephyr/subsys/shell/Kconfig.backends

74 lines
1.8 KiB
Plaintext
Raw Normal View History

# Kconfig.backends - Shell badckends configuration options
#
# Copyright (c) 2018 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig SHELL_BACKENDS
bool "Enable shell backends"
default y
help
Enable shell backends.
if SHELL_BACKENDS
config SHELL_BACKEND_SERIAL
bool "Enable serial backends."
default y
select SERIAL
select RING_BUFFER
help
Enable serial backends.
# Internal config to enable UART interrupts if supported.
config SHELL_BACKEND_SERIAL_FORCE_INTERRUPTS
bool
default y
depends on SERIAL_SUPPORT_INTERRUPT
imply UART_INTERRUPT_DRIVEN
if SHELL_BACKEND_SERIAL
config SHELL_BACKEND_SERIAL_TX_RING_BUFFER_SIZE
int "Set TX ring buffer size"
default 8
depends on UART_INTERRUPT_DRIVEN
help
If UART is utilizing DMA transfers then increasing ring buffer size
increases transfers length and reduces number of interrupts.
config SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE
int "Set RX ring buffer size"
default 64
help
RX ring buffer size impacts accepted latency of handling incoming
bytes by shell. If shell input is coming from the keyboard then it is
usually enough if ring buffer is few bytes (more than one due to
escape sequences). However, if bulk data is transferred it may be
required to increase it.
config SHELL_BACKEND_SERIAL_RX_POLL_PERIOD
int "RX polling period (in milliseconds)"
default 10
depends on !UART_INTERRUPT_DRIVEN
help
Determines how often UART is polled for RX byte.
endif #SHELL_BACKEND_SERIAL
config SHELL_BACKEND_RTT
bool "Enable RTT backend."
select RTT_CONSOLE
help
Enable RTT backend.
config SHELL_BACKEND_DUMMY
bool "Enable dummy backend."
help
Enable dummy backend which can be used to execute commands with no
need for physical transport interface.
endif # SHELL_BACKENDS