Added dummy backend which can be enabled with Kconfig. By default it is disabled because it needs the same amount of memory as other phisical backends. It shall be use only for commands testing purposes. Improved shell_execute_cmd function, now it clears command context before new command will be executed. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
32 lines
602 B
Text
32 lines
602 B
Text
# 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
|
|
help
|
|
Enable serial backends.
|
|
|
|
config SHELL_BACKEND_DUMMY
|
|
bool "Enable dummy backend."
|
|
select SERIAL
|
|
help
|
|
Enable dummy backend which can be used to test commands with no need
|
|
for physical transport interface.
|
|
|
|
endif # SHELL_BACKENDS
|
|
|