From 61b0cfe9df810db4fbca78e5f880d61c5063f324 Mon Sep 17 00:00:00 2001 From: Leo C Date: Sat, 23 Aug 2014 19:34:22 +0200 Subject: Add date rtc i2c --- avr/command_tbl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'avr/command_tbl.c') 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, -- cgit v1.2.3