diff options
author | Leo C | 2014-10-26 12:43:57 +0100 |
---|---|---|
committer | Leo C | 2014-10-26 12:43:57 +0100 |
commit | 8a7deceacd30529e5c32082b2c719eb055841d0d (patch) | |
tree | 19b22d5a0363847ad5e29dd2d8c726191b1b5c82 /avr/command_tbl.c | |
parent | 889202c46ced1be4fc0db3faf63564722eba2865 (diff) | |
download | z180-stamp-8a7deceacd30529e5c32082b2c719eb055841d0d.zip |
working connect command, new sleep command
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r-- | avr/command_tbl.c | 7 |
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", |