summaryrefslogtreecommitdiff
path: root/avr/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/debug.c')
-rw-r--r--avr/debug.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/avr/debug.c b/avr/debug.c
index 1b4ecc2..46e2ef6 100644
--- a/avr/debug.c
+++ b/avr/debug.c
@@ -142,7 +142,6 @@ static command_ret_t
mod_mem_avr(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const argv[])
{
uint8_t *addr;
- uint8_t data;
int nbytes;
(void) cmdtp;
@@ -168,7 +167,7 @@ mod_mem_avr(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const arg
* the next value. A non-converted value exits.
*/
do {
- data = *addr;
+ uint8_t data = *addr;
printf_P(PSTR("%04x: %02x"), addr, data);
nbytes = cli_readline(PSTR(" ? "), 0);
@@ -208,8 +207,6 @@ command_ret_t do_mem_nm_avr(cmd_tbl_t *cmdtp, int flag, int argc, char * const a
/*------------------------------------------------------------------------------*/
-#if 1
-
struct __freelist {
size_t sz;
struct __freelist *nx;
@@ -250,6 +247,11 @@ printfreelist(const char * title)
(size_t) STACK_POINTER(), (size_t) __brkval, freesum);
}
-#endif
+command_ret_t do_pr_free_avr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+ printfreelist(NULL);
+
+ return CMD_RET_SUCCESS;
+}
#endif /* DEBUG */