]>
cloudbase.mooo.com Git - z180-stamp.git/blob - include/debug.h
7 #include <avr/pgmspace.h>
16 #define debug_cond(cond, fmt, args...) \
19 printf_P(PSTR(fmt), ##args); \
22 #define debug(fmt, args...) \
23 debug_cond(_DEBUG, fmt, ##args)
28 #define DBG_P(lvl, format, ...) if (DEBUG>=lvl) \
29 fprintf_P( stdout, PSTR(format), ##__VA_ARGS__ )
31 #define DBG_P(lvl, ...)
36 void dump_eep(const uint8_t *addr
, unsigned int len
, char *title
);
37 void dump_ram(const uint8_t *addr
, unsigned int len
, char *title
);
38 void printfreelist(const char * title
);