]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/debug.h
Add copyright notice
[z180-stamp.git] / include / debug.h
index 7c19e40fd186fb240e07ea91a70fe4d92ec50950..39c15b0ab88c77d52c568347c7031c6a6b6dc1fd 100644 (file)
@@ -1,9 +1,17 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * (C) Copyright 2000-2009
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
 
 #ifndef DEBUG_H_
 #define DEBUG_H_
 
 #include "common.h"
-#include <avr/pgmspace.h>
 
 #ifdef DEBUG
 #define _DEBUG 1
 #define _DEBUG 0
 #endif
 
+/*
+ * Output a debug text when condition "cond" is met. The "cond" should be
+ * computed by a preprocessor in the best case, allowing for the best
+ * optimization.
+ */
 #define debug_cond(cond, fmt, args...)         \
        do {                                    \
                if (cond)                       \
@@ -35,4 +48,3 @@ void printfreelist(const char * title);
 
 
 #endif /* DEBUG_H_ */
-