summaryrefslogtreecommitdiff
path: root/avr/command_tbl.c
diff options
context:
space:
mode:
authorLeo C2014-08-23 19:34:22 +0200
committerLeo C2014-08-23 19:34:22 +0200
commit61b0cfe9df810db4fbca78e5f880d61c5063f324 (patch)
treeec9b73a87afa5fdd90acc3c7309104399db104b7 /avr/command_tbl.c
parent21a24f90c5aaaaf13f91716208b32cde163c5918 (diff)
downloadz180-stamp-61b0cfe9df810db4fbca78e5f880d61c5063f324.zip
Add date rtc i2c
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r--avr/command_tbl.c10
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,