diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
commit | cbc941282074856fc6179761b70a0c9879b0b64d (patch) | |
tree | ed15c6d9e20ceaf1ff01a05aa63054410bb8ed54 /firmware/debug.h | |
parent | 324c5ba9098c1010d0aa8c1e26b95509878ce9f2 (diff) | |
download | mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.tar.gz mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.zip |
update firmware to @319
Diffstat (limited to 'firmware/debug.h')
-rw-r--r-- | firmware/debug.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/debug.h b/firmware/debug.h index 8aa15d9..202ef22 100644 --- a/firmware/debug.h +++ b/firmware/debug.h @@ -1,5 +1,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); -void debug_write(char *buf); unsigned char debug_AsciiToHex(unsigned char high, unsigned char low); void debug_SendHex(unsigned char hex); |