From f338df2abc35f85961aa6266458f94ea2a102b81 Mon Sep 17 00:00:00 2001 From: Leo C Date: Mon, 18 Aug 2014 23:40:36 +0200 Subject: Command 'go ' works now Add debug command to display AVR RAM --- avr/command_tbl.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'avr/command_tbl.c') diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 31566b4..69f6273 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -13,24 +13,36 @@ extern int do_env_save(cmd_tbl_t *, int, int, char * const []); extern int do_loadf(cmd_tbl_t *, int, int, char * const []); extern int do_go(cmd_tbl_t *, int, int, char * const []); extern int do_restart(cmd_tbl_t *, int, int, char * const []); -extern int do_dump_eep(cmd_tbl_t *, int, int, char * const []); +extern int do_dump_mem(cmd_tbl_t *, int, int, char * const []); extern int do_eep_cp(cmd_tbl_t *, int, int, char * const []); +extern int do_busreq_pulse(cmd_tbl_t *, int, int, char * const []); cmd_tbl_t cmd_tbl[] = { #ifdef DEBUG CMD_TBL_ITEM( - !emd, 3, 0, do_dump_eep, + !mdr, 3, 1, do_dump_mem, + "RAM dump", + "address [count]" +), +CMD_TBL_ITEM( + !mde, 3, 1, do_dump_mem, "EEPROM dump", "address [count]" ), CMD_TBL_ITEM( - !ecp, 4, 1, do_eep_cp, + !cpe, 4, 0, do_eep_cp, "EEPROM copy", "source target count" ), #endif +CMD_TBL_ITEM( + mstep, 2, 1, do_busreq_pulse, + "execute one M cycle", + "[count]\n" + " - repeat count times" +), CMD_TBL_ITEM( echo, CONFIG_SYS_MAXARGS, 1, do_echo, "echo args to console", -- cgit v1.2.3