2016-07-31 21:16:29 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Intel Corporation
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-07-31 21:16:29 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Shell framework services
|
|
|
|
*
|
|
|
|
* This module initiates shell.
|
|
|
|
* Includes also adding basic framework commands to shell commands.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <misc/printk.h>
|
2016-12-24 03:06:46 +08:00
|
|
|
#include <shell/shell.h>
|
2016-07-31 21:16:29 +08:00
|
|
|
#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);
|