summaryrefslogtreecommitdiff
path: root/avr/command_tbl.c
diff options
context:
space:
mode:
authorLeo C2014-08-14 16:27:17 +0200
committerLeo C2014-08-14 16:27:17 +0200
commit534e1dfcb2f6cdfa1cd62913045b832f2189b7aa (patch)
treebfd0f2693160aeae7aa1788f1b3903ac843b9e45 /avr/command_tbl.c
parent72f5882239bb88b8a68f305802e0dde37a975604 (diff)
downloadz180-stamp-534e1dfcb2f6cdfa1cd62913045b832f2189b7aa.zip
Add commands: loadf, go, reset restarthexrel-1
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r--avr/command_tbl.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/avr/command_tbl.c b/avr/command_tbl.c
index 78f7a24..2717a37 100644
--- a/avr/command_tbl.c
+++ b/avr/command_tbl.c
@@ -9,6 +9,9 @@ extern int do_help(cmd_tbl_t *, int, int, char * const []);
extern int do_echo(cmd_tbl_t *, int, int, char * const []);
extern int do_env_print(cmd_tbl_t *, int, int, char * const []);
extern int do_env_set(cmd_tbl_t *, int, int, char * const []);
+extern int do_loadf(cmd_tbl_t *, int, int, char * const []);
+extern int do_go(cmd_tbl_t *, int, int, char * const []);
+extern int do_restart(cmd_tbl_t *, int, int, char * const []);
cmd_tbl_t cmd_tbl[] = {
@@ -30,7 +33,7 @@ CMD_TBL_ITEM_COMPLETE(
printenv, CONFIG_SYS_MAXARGS, 1, do_env_print,
"print environment variables",
"\n"
- " - print [all] values of all environment variables\n"
+ " - print values of all environment variables\n"
"printenv name ...\n"
" - print value of environment variable 'name'",
var_complete
@@ -46,6 +49,30 @@ CMD_TBL_ITEM_COMPLETE(
),
CMD_TBL_ITEM(
+ loadf, 1, 0, do_loadf,
+ "load srec_cat prepared image from controller flash",
+ ""
+),
+CMD_TBL_ITEM(
+ go, 2, 0, do_go,
+ "start application at address 'addr'",
+ "addr\n"
+ " - start application at address 'addr'"
+// "\n"
+// " passing 'arg' as arguments"
+),
+CMD_TBL_ITEM(
+ reset, 1, 0, do_reset,
+ "Keep CPU in RESET state",
+ ""
+),
+CMD_TBL_ITEM(
+ restart, 1, 0, do_restart,
+ "Perform RESET of the CPU",
+ ""
+),
+
+CMD_TBL_ITEM(
md, 3, 1, do_mem_md,
"memory display",
"address [# of objects]"