diff options
author | Leo C | 2014-08-18 23:40:36 +0200 |
---|---|---|
committer | Leo C | 2014-08-18 23:40:36 +0200 |
commit | f338df2abc35f85961aa6266458f94ea2a102b81 (patch) | |
tree | 2f608280c2368cda835b6de19fa0ff8f6c85dfd7 /avr/command_tbl.c | |
parent | 1da3acc4b7215e76d459905c3e74675ffa679ce0 (diff) | |
download | z180-stamp-f338df2abc35f85961aa6266458f94ea2a102b81.zip |
Command 'go <startaddr>' works now
Add debug command to display AVR RAM
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r-- | avr/command_tbl.c | 18 |
1 files changed, 15 insertions, 3 deletions
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,25 +13,37 @@ 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", "[args..]\n" |