]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/command_tbl.c
Programmable Z180 clock, clock command
[z180-stamp.git] / avr / command_tbl.c
index 6e8a91b5fa67541221b42afb8816c10f3e3c86fb..c721d536e9febe1fac0534bb28be87c3ad937965 100644 (file)
@@ -18,6 +18,7 @@ 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 []);
+extern command_ret_t do_clock(cmd_tbl_t *, int, int, char * const []);
 
 
 cmd_tbl_t cmd_tbl[] = {
@@ -119,6 +120,11 @@ CMD_TBL_ITEM(
        "Perform RESET of the CPU",
        ""
 ),
+CMD_TBL_ITEM(
+       clock, 2, 0,    do_clock,
+       "Set or get CPU frequency",
+       ""
+),
 
 CMD_TBL_ITEM(
        md,     3,      1,      do_mem_md,