2018-10-04 21:17:00 +08:00
|
|
|
# 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
|
2018-09-10 15:48:56 +08:00
|
|
|
select RING_BUFFER
|
2018-10-04 21:17:00 +08:00
|
|
|
help
|
|
|
|
Enable serial backends.
|
|
|
|
|
2018-09-10 15:48:56 +08:00
|
|
|
# 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
|
|
|
|
|
2018-10-19 15:37:47 +08:00
|
|
|
config SHELL_BACKEND_RTT
|
|
|
|
bool "Enable RTT backend."
|
|
|
|
select RTT_CONSOLE
|
|
|
|
help
|
|
|
|
Enable RTT backend.
|
|
|
|
|
2018-10-02 20:47:20 +08:00
|
|
|
config SHELL_BACKEND_DUMMY
|
|
|
|
bool "Enable dummy backend."
|
|
|
|
help
|
2018-10-17 18:16:06 +08:00
|
|
|
Enable dummy backend which can be used to execute commands with no
|
|
|
|
need for physical transport interface.
|
2018-10-02 20:47:20 +08:00
|
|
|
|
2018-10-04 21:17:00 +08:00
|
|
|
endif # SHELL_BACKENDS
|