= {
{
"help",
cmd_help,
"display help for available commands",
"Usage: help [command]\n"
" Displays help for 'command', or all commands and their\n"
" short descriptions.\n"},
{
"echo",
cmd_echo,
"echo all arguments separated by a whitespace it can show args",
"Usage: echo [string ...]\n"},
{
"history",
cmd_history,
"show all history command",
"Usage: history\n"},
{
"hexdump",
cmd_hexdump,
"dumps memory region in hex",
"Usage: hexdump [address] [length]\n"},
{
"read32",
cmd_read32,
"read 32-bits value from device reg",
"Usage: read32 [address]\n"},
{
"write32",
cmd_write32,
"write 32-bits value to device reg",
"Usage: write32 [address] [data]\n"},
{
"ls",
cmd_ls,
"linux nerd compatible",
"Usage: ls\n"},
}
#define msh_command_end
Definition cli.h:21
static int cmd_history(int argc, const char **argv)
Definition commands.c:70
static int cmd_help(int argc, const char **argv)
Definition commands.c:78
static int cmd_read32(int argc, const char **argv)
Definition commands.c:44
static int cmd_echo(int argc, const char **argv)
Definition commands.c:12
static int cmd_write32(int argc, const char **argv)
Definition commands.c:58
static int cmd_ls(int argc, const char **argv)
Definition commands.c:25
static int cmd_hexdump(int argc, const char **argv)
Definition commands.c:30