]>
cloudbase.mooo.com Git - z180-stamp.git/blob - avr/command_tbl.c
78f7a24d46235b5aa265e8554fea14fddb5654b8
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 []);
14 cmd_tbl_t cmd_tbl
[] = {
17 echo
, CONFIG_SYS_MAXARGS
, 1, do_echo
,
18 "echo args to console",
20 " - echo args to console; \\c suppresses newline"
22 CMD_TBL_ITEM_COMPLETE(
23 run
, CONFIG_SYS_MAXARGS
, 1, do_run
,
24 "run commands in an environment variable",
26 " - run the commands in the environment variable(s) 'var'",
29 CMD_TBL_ITEM_COMPLETE(
30 printenv
, CONFIG_SYS_MAXARGS
, 1, do_env_print
,
31 "print environment variables",
33 " - print [all] values of all environment variables\n"
35 " - print value of environment variable 'name'",
38 CMD_TBL_ITEM_COMPLETE(
39 setenv
, CONFIG_SYS_MAXARGS
, 0, do_env_set
,
40 "set environment variables",
42 " - set environment variable 'name' to 'value ...'\n"
44 " - delete environment variable 'name'",
51 "address [# of objects]"
55 "memory modify (auto-incrementing address)",
60 "memory modify (constant address)",
65 "memory write (fill)",
66 "address value [count]"
74 cmp
, 4, 1, do_mem_cmp
,
79 base
, 2, 1, do_mem_base
,
80 "print or set address offset",
82 " - print address offset for memory commands\n"
84 " - set address offset for memory commands to 'offset'"
87 loop
, 3, 1, do_mem_loop
,
88 "infinite loop on address range",
89 "address number_of_bytes"
93 loopw
, 4, 1, do_mem_loopw
,
94 "infinite write loop on address range",
95 "address number_of_bytes data_to_write"
97 #endif /* CONFIG_LOOPW */
99 #ifdef CONFIG_CMD_MEMTEST
101 mtest
, 5, 1, do_mem_mtest
,
102 "simple RAM read/write test",
103 "[start [end [pattern [iterations]]]]"
105 #endif /* CONFIG_CMD_MEMTEST */
107 #ifdef CONFIG_MX_CYCLIC
109 mdc
, 4, 1, do_mem_mdc
,
110 "memory display cyclic",
111 "address count delay(ms)"
114 mwc
, 4, 1, do_mem_mwc
,
115 "memory write cyclic",
116 "address value delay(ms)"
118 #endif /* CONFIG_MX_CYCLIC */
122 help
, CONFIG_SYS_MAXARGS
, 1, do_help
,
123 "print command description/usage",
125 " - print brief description of all commands\n"
127 " - print detailed usage of 'command'"
130 /* This does not use the CMD_TBL_ITEM macro as ? can't be used in symbol names */
131 {FSTR("?"), CONFIG_SYS_MAXARGS
, 1, do_help
,
132 FSTR("alias for 'help'"),
133 #ifdef CONFIG_SYS_LONGHELP
135 #endif /* CONFIG_SYS_LONGHELP */
136 #ifdef CONFIG_AUTO_COMPLETE
140 /* Mark end of table */