]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - debug.h
new, derived from old avr/crypto + cast5
[avr-crypto-lib.git] / debug.h
diff --git a/debug.h b/debug.h
new file mode 100644 (file)
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_*/