summaryrefslogtreecommitdiff
path: root/avr/command_tbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r--avr/command_tbl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/avr/command_tbl.c b/avr/command_tbl.c
index 336e6ea..336c608 100644
--- a/avr/command_tbl.c
+++ b/avr/command_tbl.c
@@ -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",