]>
cloudbase.mooo.com Git - z180-stamp.git/blob - avr/command_tbl.c
2717a370e04b1de5762d12745427fc4d3792eee0
8 extern int do_help(cmd_tbl_t
*, int, int, char * const []);
9 extern int do_echo(cmd_tbl_t
*, int, int, char * const []);
10 extern int do_env_print(cmd_tbl_t
*, int, int, char * const []);
11 extern int do_env_set(cmd_tbl_t
*, int, int, char * const []);
12 extern int do_loadf(cmd_tbl_t
*, int, int, char * const []);
13 extern int do_go(cmd_tbl_t
*, int, int, char * const []);
14 extern int do_restart(cmd_tbl_t
*, int, int, char * const []);
17 cmd_tbl_t cmd_tbl
[] = {
20 echo
, CONFIG_SYS_MAXARGS
, 1, do_echo
,
21 "echo args to console",
23 " - echo args to console; \\c suppresses newline"
25 CMD_TBL_ITEM_COMPLETE(
26 run
, CONFIG_SYS_MAXARGS
, 1, do_run
,
27 "run commands in an environment variable",
29 " - run the commands in the environment variable(s) 'var'",
32 CMD_TBL_ITEM_COMPLETE(
33 printenv
, CONFIG_SYS_MAXARGS
, 1, do_env_print
,
34 "print environment variables",
36 " - print values of all environment variables\n"
38 " - print value of environment variable 'name'",
41 CMD_TBL_ITEM_COMPLETE(
42 setenv
, CONFIG_SYS_MAXARGS
, 0, do_env_set
,
43 "set environment variables",
45 " - set environment variable 'name' to 'value ...'\n"
47 " - delete environment variable 'name'",
52 loadf
, 1, 0, do_loadf
,
53 "load srec_cat prepared image from controller flash",
58 "start application at address 'addr'",
60 " - start application at address 'addr'"
62 // " passing 'arg' as arguments"
65 reset
, 1, 0, do_reset
,
66 "Keep CPU in RESET state",
70 restart
, 1, 0, do_restart
,
71 "Perform RESET of the CPU",
78 "address [# of objects]"
82 "memory modify (auto-incrementing address)",
87 "memory modify (constant address)",
92 "memory write (fill)",
93 "address value [count]"
101 cmp
, 4, 1, do_mem_cmp
,
106 base
, 2, 1, do_mem_base
,
107 "print or set address offset",
109 " - print address offset for memory commands\n"
111 " - set address offset for memory commands to 'offset'"
114 loop
, 3, 1, do_mem_loop
,
115 "infinite loop on address range",
116 "address number_of_bytes"
120 loopw
, 4, 1, do_mem_loopw
,
121 "infinite write loop on address range",
122 "address number_of_bytes data_to_write"
124 #endif /* CONFIG_LOOPW */
126 #ifdef CONFIG_CMD_MEMTEST
128 mtest
, 5, 1, do_mem_mtest
,
129 "simple RAM read/write test",
130 "[start [end [pattern [iterations]]]]"
132 #endif /* CONFIG_CMD_MEMTEST */
134 #ifdef CONFIG_MX_CYCLIC
136 mdc
, 4, 1, do_mem_mdc
,
137 "memory display cyclic",
138 "address count delay(ms)"
141 mwc
, 4, 1, do_mem_mwc
,
142 "memory write cyclic",
143 "address value delay(ms)"
145 #endif /* CONFIG_MX_CYCLIC */
149 help
, CONFIG_SYS_MAXARGS
, 1, do_help
,
150 "print command description/usage",
152 " - print brief description of all commands\n"
154 " - print detailed usage of 'command'"
157 /* This does not use the CMD_TBL_ITEM macro as ? can't be used in symbol names */
158 {FSTR("?"), CONFIG_SYS_MAXARGS
, 1, do_help
,
159 FSTR("alias for 'help'"),
160 #ifdef CONFIG_SYS_LONGHELP
162 #endif /* CONFIG_SYS_LONGHELP */
163 #ifdef CONFIG_AUTO_COMPLETE
167 /* Mark end of table */