We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ed8406 + 06ff573 commit 26bf02dCopy full SHA for 26bf02d
libmaple/libmaple.h
@@ -34,7 +34,13 @@
34
#include "libmaple_types.h"
35
36
// General configuration
37
-#define MAPLE_DEBUG 1
+#define DEBUG_NONE 0
38
+#define DEBUG_FAULT 1
39
+#define DEBUG_ALL 2
40
+
41
+#ifndef DEBUG_LEVEL
42
+#define DEBUG_LEVEL DEBUG_ALL
43
+#endif
44
45
// MCU-specific configuration
46
#ifdef MCU_STM32F103RB
libmaple/util.h
@@ -77,10 +77,6 @@ void throb(void);
77
/* Asserts for sanity checks, redefine DEBUG_LEVEL in libmaple.h to
78
* compile out these checks */
79
80
-#define DEBUG_NONE 0
81
-#define DEBUG_FAULT 1
82
-#define DEBUG_ALL 2
83
-
84
#if DEBUG_LEVEL >= DEBUG_ALL
85
#define ASSERT(exp) \
86
if (exp) { \
0 commit comments