diff options
author | Leo C | 2014-11-21 13:46:48 +0100 |
---|---|---|
committer | Leo C | 2014-11-21 13:46:48 +0100 |
commit | fc454c83abd628f03eb39800b269d25c54f9591a (patch) | |
tree | aa9e11662eb0c3f7e479dfb017411c6a8e8ebb8a /include | |
parent | e39cd2a2822a410ba06d61657a467c8307daa35d (diff) | |
download | z180-stamp-fc454c83abd628f03eb39800b269d25c54f9591a.zip |
Add display offset to dump_mem()
Diffstat (limited to 'include')
-rw-r--r-- | include/debug.h | 2 | ||||
-rw-r--r-- | include/print-utils.h | 16 |
2 files changed, 15 insertions, 3 deletions
diff --git a/include/debug.h b/include/debug.h index 70039a6..da8e9a0 100644 --- a/include/debug.h +++ b/include/debug.h @@ -30,8 +30,6 @@ #endif /* 0 */ -void dump_eep(uint32_t addr, unsigned int len, char *title); -void dump_ram(uint32_t addr, unsigned int len, char *title); void printfreelist(const char * title); diff --git a/include/print-utils.h b/include/print-utils.h index e76cba7..238cf40 100644 --- a/include/print-utils.h +++ b/include/print-utils.h @@ -1,3 +1,17 @@ +#ifndef PRINT_UTILS_H +#define PRINT_UTILS_H + +#include "common.h" +#include <avr/eeprom.h> + void print_blanks(uint_fast8_t count); -int dump_mem(uint32_t startaddr, uint32_t len, +int dump_mem(uint32_t address, uint32_t offset, uint32_t len, void (*readfkt)(uint8_t *, uint32_t, uint8_t), char *title); + +void dump_eep(uint32_t addr, unsigned int len, char *title); +void dump_ram(uint32_t addr, uint32_t offset, unsigned int len, char *title); + +void eeprom_read_buf(uint8_t *buf, uint32_t addr, uint8_t count); +void ram_read_buf(uint8_t *buf, uint32_t addr, uint8_t count); + +#endif /* PRINT_UTILS_H */ |