]>
cloudbase.mooo.com Git - z180-stamp.git/blob - avr/command_tbl.c
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_env_save(cmd_tbl_t
*, int, int, char * const []);
13 extern int do_loadf(cmd_tbl_t
*, int, int, char * const []);
14 extern int do_go(cmd_tbl_t
*, int, int, char * const []);
15 extern int do_restart(cmd_tbl_t
*, int, int, char * const []);
16 extern int do_dump_eep(cmd_tbl_t
*, int, int, char * const []);
17 extern int do_eep_cp(cmd_tbl_t
*, int, int, char * const []);
20 cmd_tbl_t cmd_tbl
[] = {
24 !emd
, 3, 0, do_dump_eep
,
29 !ecp
, 4, 1, do_eep_cp
,
35 echo
, CONFIG_SYS_MAXARGS
, 1, do_echo
,
36 "echo args to console",
38 " - echo args to console; \\c suppresses newline"
40 CMD_TBL_ITEM_COMPLETE(
41 run
, CONFIG_SYS_MAXARGS
, 1, do_run
,
42 "run commands in an environment variable",
44 " - run the commands in the environment variable(s) 'var'",
47 CMD_TBL_ITEM_COMPLETE(
48 printenv
, CONFIG_SYS_MAXARGS
, 1, do_env_print
,
49 "print environment variables",
51 " - print values of all environment variables\n"
53 " - print value of environment variable 'name'",
56 CMD_TBL_ITEM_COMPLETE(
57 setenv
, CONFIG_SYS_MAXARGS
, 0, do_env_set
,
58 "set environment variables",
60 " - set environment variable 'name' to 'value ...'\n"
62 " - delete environment variable 'name'",
66 saveenv
, 1, 0, do_env_save
,
67 "save environment variables to persistent storage",
72 loadf
, 1, 0, do_loadf
,
73 "load srec_cat prepared image from controller flash",
78 "start application at address 'addr'",
80 " - start application at address 'addr'"
82 // " passing 'arg' as arguments"
85 reset
, 1, 0, do_reset
,
86 "Keep CPU in RESET state",
90 restart
, 1, 0, do_restart
,
91 "Perform RESET of the CPU",
98 "address [# of objects]"
102 "memory modify (auto-incrementing address)",
107 "memory modify (constant address)",
112 "memory write (fill)",
113 "address value [count]"
118 "source target count"
121 cmp
, 4, 1, do_mem_cmp
,
126 base
, 2, 1, do_mem_base
,
127 "print or set address offset",
129 " - print address offset for memory commands\n"
131 " - set address offset for memory commands to 'offset'"
134 loop
, 3, 1, do_mem_loop
,
135 "infinite loop on address range",
136 "address number_of_bytes"
140 loopw
, 4, 1, do_mem_loopw
,
141 "infinite write loop on address range",
142 "address number_of_bytes data_to_write"
144 #endif /* CONFIG_LOOPW */
146 #ifdef CONFIG_CMD_MEMTEST
148 mtest
, 5, 1, do_mem_mtest
,
149 "simple RAM read/write test",
150 "[start [end [pattern [iterations]]]]"
152 #endif /* CONFIG_CMD_MEMTEST */
154 #ifdef CONFIG_MX_CYCLIC
156 mdc
, 4, 1, do_mem_mdc
,
157 "memory display cyclic",
158 "address count delay(ms)"
161 mwc
, 4, 1, do_mem_mwc
,
162 "memory write cyclic",
163 "address value delay(ms)"
165 #endif /* CONFIG_MX_CYCLIC */
169 help
, CONFIG_SYS_MAXARGS
, 1, do_help
,
170 "print command description/usage",
172 " - print brief description of all commands\n"
174 " - print detailed usage of 'command'"
177 /* This does not use the CMD_TBL_ITEM macro as ? can't be used in symbol names */
178 {FSTR("?"), CONFIG_SYS_MAXARGS
, 1, do_help
,
179 FSTR("alias for 'help'"),
180 #ifdef CONFIG_SYS_LONGHELP
182 #endif /* CONFIG_SYS_LONGHELP */
183 #ifdef CONFIG_AUTO_COMPLETE
187 /* Mark end of table */