summaryrefslogtreecommitdiff
path: root/firmware/debug.h
blob: 202ef227380cffe984b275393edb6bf4a2b830a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifdef DEBUG
#define debugf printf("%s,%d: ", __FILE__, __LINE__); printf
#else
#define debugf debug_dummy
#endif

void debug_dummy(char *fmt, ...);
void debug_init(void);
int debug_putchar(char c, FILE *stream);
void debug_deinit(void);
unsigned char debug_AsciiToHex(unsigned char high, unsigned char low);
void debug_SendHex(unsigned char hex);