X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/05437fb4cdb907816a4fc3ffafa2617fcf33266a..228b1c5f79749940e11247bd97626e21df7033bd:/include/debug.h?ds=inline diff --git a/include/debug.h b/include/debug.h index 45a1d50..0d60177 100644 --- a/include/debug.h +++ b/include/debug.h @@ -1,8 +1,26 @@ +/* + * (C) Copyright 2014 Leo C. + * + * (C) Copyright 2000-2009 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * SPDX-License-Identifier: GPL-2.0 + */ + #ifndef DEBUG_H_ #define DEBUG_H_ -#include "common.h" +#include "command.h" + +command_ret_t do_dump_mem(cmd_tbl_t *, uint_fast8_t, int, char * const []); +command_ret_t do_mem_mm_avr(cmd_tbl_t *, uint_fast8_t, int, char * const []); +command_ret_t do_mem_nm_avr(cmd_tbl_t *, uint_fast8_t, int, char * const []); +command_ret_t do_eep_cp(cmd_tbl_t *, uint_fast8_t, int, char * const []); +command_ret_t do_pr_free_avr(cmd_tbl_t *, uint_fast8_t, int, char * const []); + +void printfreelist(const char * title); + #ifdef DEBUG #define _DEBUG 1 @@ -10,6 +28,11 @@ #define _DEBUG 0 #endif +/* + * Output a debug text when condition "cond" is met. The "cond" should be + * computed by a preprocessor in the best case, allowing for the best + * optimization. + */ #define debug_cond(cond, fmt, args...) \ do { \ if (cond) \ @@ -29,11 +52,4 @@ #endif #endif /* 0 */ - -void dump_eep(const uint8_t *addr, unsigned int len, char *title); -void dump_ram(const uint8_t *addr, unsigned int len, char *title); -void printfreelist(const char * title); - - #endif /* DEBUG_H_ */ -