X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=debug.h;fp=debug.h;h=c75dad6bd013e6cd64b3ee6cc369f79ede8d4b39;hp=0000000000000000000000000000000000000000;hb=3c995d0a8faeb9d37927d48e20fc45d839e066ea;hpb=a7f70b30f9c841e9d2287f8428b6263642eb0493 diff --git a/debug.h b/debug.h new file mode 100644 index 0000000..c75dad6 --- /dev/null +++ b/debug.h @@ -0,0 +1,22 @@ +#ifndef DEBUG_H_ +#define DEBUG_H_ + +#ifdef DEBUG + #define DEBUG_INIT() debug_init() + #define DEBUG_C(_c) debug_char(_c) + #define DEBUG_S(_s) debug_str(_s) + #define DEBUG_B(_b) debug_byte(_b) +#else + #define DEBUG_INIT() + #define DEBUG_C(_c) + #define DEBUG_S(_s) + #define DEBUG_B(_b) +#endif + + +void debug_init(void); +void debug_char(char); +void debug_str(char*); +void debug_byte(char); + +#endif /*DEBUG_H_*/