]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/debug.c
add fat commands: rm, mkdir
[z180-stamp.git] / avr / debug.c
index ea4aa21a9f0dce93b8eb7db501c20e02c54cc811..ea21583fea9706ef1b0ad4e87169d18a66849338 100644 (file)
@@ -6,9 +6,6 @@
 
 #include "debug.h"
 #include "common.h"
-#include <stdlib.h>                    /* __malloc_margin */
-#include <string.h>
-#include <ctype.h>
 #include <avr/eeprom.h>
 
 #include "command.h"
  * Memory Display
  *     md addr {len}
  */
-command_ret_t do_dump_mem(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char * const argv[])
+command_ret_t do_dump_mem(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int argc, char * const argv[])
 {
-       int (*readwhat)(uint8_t *buf, uint32_t addr, uint8_t count);
-
-       (void) cmdtp; (void) flag;
+       ERRNUM (*readwhat)(uint8_t *buf, uint32_t addr, uint8_t count);
 
        if (argc < 2)
                return CMD_RET_USAGE;