diff options
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r-- | avr/command_tbl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 2fb41b9..6fcbee7 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -16,10 +16,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, |