]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/command_tbl.c
One dump_mem() for all memory types (avr eeprom and ram, z180 ram)
[z180-stamp.git] / avr / command_tbl.c
index 336e6ea3a068d66263519c1d9ebf1fdd014b5ff4..336c608b326c72a530a99e824ecaa4b52ce63a24 100644 (file)
@@ -7,6 +7,7 @@
 
 extern command_ret_t do_help(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_echo(cmd_tbl_t *, int, int, char * const []);
+extern command_ret_t do_sleep(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_env_print(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_env_default(cmd_tbl_t *, int, int, char * const []);
 extern command_ret_t do_env_set(cmd_tbl_t *, int, int, char * const []);
@@ -62,6 +63,12 @@ CMD_TBL_ITEM(
        "[args..]\n"
        "     - echo args to console; \\c suppresses newline"
 ),
+CMD_TBL_ITEM(
+       sleep ,    2,    1,     do_sleep,
+       "delay execution for some time",
+       "N[m][s]\n"
+       "    - delay execution for decimal N (milli) seconds"
+),
 CMD_TBL_ITEM_COMPLETE(
        run,    CONFIG_SYS_MAXARGS,     1,      do_run,
        "run commands in an environment variable",