]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/debug.h
Remove STM32 variant (and submodule libopencm3)
[z180-stamp.git] / include / debug.h
index da8e9a060ee89437c2bfd0b1ad0d2436869d6ac8..0ee0129fa45dae5ebeeb14a71f2f7f43b7c0a881 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * (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_
 #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)                       \