subsys: shell: add dummy backend to simplify commands testing
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>
This commit is contained in:
parent
359341203f
commit
c3bc7180b0
8 changed files with 188 additions and 3 deletions
|
@ -600,7 +600,9 @@ void shell_print_stream(const void *user_ctx, const char *data,
|
|||
* Note: This by no means makes any of the commands a stable interface, so
|
||||
* this function should only be used for debugging/diagnostic.
|
||||
*
|
||||
* @param[in] shell Pointer to the shell instance.
|
||||
* @param[in] shell Pointer to the shell instance. It can be NULL when
|
||||
* the :option:`CONFIG_SHELL_BACKEND_DUMMY` option is
|
||||
* enabled.
|
||||
* @param[in] cmd Command to be executed.
|
||||
*
|
||||
* @returns Result of the execution
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue