mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-10 11:11:58 +00:00
New shell implementation is on the way. For now old one and all references are kept to be gradually replaced by new shell. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
31 lines
522 B
C
31 lines
522 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief Shell framework services
|
|
*
|
|
* This module initiates shell.
|
|
* Includes also adding basic framework commands to shell commands.
|
|
*/
|
|
|
|
#include <misc/printk.h>
|
|
#include <shell/legacy_shell.h>
|
|
#include <init.h>
|
|
|
|
#define SHELL_PROMPT "shell> "
|
|
|
|
int shell_run(struct device *dev)
|
|
{
|
|
ARG_UNUSED(dev);
|
|
|
|
shell_init(SHELL_PROMPT);
|
|
return 0;
|
|
}
|
|
|
|
|
|
SYS_INIT(shell_run, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|