Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
0b69c8cdaThis file is pinned to the selected release. Download the original to open it in your design tool.
/*
* Copyright (c) 2021 TiaC Systems
* Copyright (c) 2019-2021 Li-Pro.Net
* SPDX-License-Identifier: Apache-2.0
*/
#include <sys/printk.h>
#include <shell/shell.h>
static int cmd_hello(const struct shell *shell, size_t argc, char** argv)
{
ARG_UNUSED(argc);
ARG_UNUSED(argv);
shell_print(shell, "Hello from shell.");
return 0;
}
SHELL_CMD_ARG_REGISTER(hello, NULL, "say hello", cmd_hello, 1, 0);