X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/d0581f881c4072ef0ac453167a98dc3bc0d87d86..54678798da1da8c4b53a9e201a098ef284b8498e:/avr/command_tbl.c diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 2fb41b9..6e8a91b 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -8,6 +8,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_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 []); extern command_ret_t do_env_save(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_loadf(cmd_tbl_t *, int, int, char * const []); @@ -16,10 +17,20 @@ extern command_ret_t do_restart(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_dump_mem(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_eep_cp(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_busreq_pulse(cmd_tbl_t *, int, int, char * const []); +extern command_ret_t do_date(cmd_tbl_t *, int, int, char * const []); cmd_tbl_t cmd_tbl[] = { +CMD_TBL_ITEM( + date, 2, 1, do_date, + "get/set/reset date & time", + "[MMDDhhmm[[CC]YY][.ss]]\ndate reset\n" + " - without arguments: print date & time\n" + " - with numeric argument: set the system date & time\n" + " - with 'reset' argument: reset the RTC" +), + #ifdef DEBUG CMD_TBL_ITEM( !mdr, 3, 1, do_dump_mem, @@ -79,6 +90,11 @@ CMD_TBL_ITEM( "save environment variables to persistent storage", "" ), +CMD_TBL_ITEM( + defaultenv, 1, 0, do_env_default, + "set all environment variables to their default values", + "" +), CMD_TBL_ITEM( loadf, 1, 0, do_loadf,