summaryrefslogtreecommitdiff
path: root/avr/debug.c
diff options
context:
space:
mode:
authorLeo C2014-11-21 13:46:48 +0100
committerLeo C2014-11-21 13:46:48 +0100
commitfc454c83abd628f03eb39800b269d25c54f9591a (patch)
treeaa9e11662eb0c3f7e479dfb017411c6a8e8ebb8a /avr/debug.c
parente39cd2a2822a410ba06d61657a467c8307daa35d (diff)
downloadz180-stamp-fc454c83abd628f03eb39800b269d25c54f9591a.zip
Add display offset to dump_mem()
Diffstat (limited to 'avr/debug.c')
-rw-r--r--avr/debug.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/avr/debug.c b/avr/debug.c
index 1940eb0..27b5329 100644
--- a/avr/debug.c
+++ b/avr/debug.c
@@ -14,29 +14,6 @@
#ifdef DEBUG
-void eeprom_read_buf(uint8_t *buf, uint32_t addr, uint8_t count)
-{
- eeprom_read_block((void *) buf, (const void *) (size_t) addr, count);
-}
-
-void ram_read_buf(uint8_t *buf, uint32_t addr, uint8_t count)
-{
- while (count--)
- *buf++ = *(uint8_t *) (size_t) addr++;
-}
-
-
-void dump_eep(uint32_t addr, unsigned int len, char *title)
-{
- dump_mem(addr, len, eeprom_read_buf, title);
-}
-
-void dump_ram(uint32_t addr, unsigned int len, char *title)
-{
- dump_mem(addr, len, ram_read_buf, title);
-}
-
-
#if 0
void dump_heap(void)
{
@@ -80,7 +57,7 @@ command_ret_t do_dump_mem(cmd_tbl_t *cmdtp, int flag, int argc, char * const arg
length = (uint16_t) strtoul(argv[2], NULL, 16);
/* Print the lines. */
- dump_mem(addr, length, readhow, NULL);
+ dump_mem(addr, addr, length, readhow, NULL);
return CMD_RET_SUCCESS;
}