Skip to content

Commit 26bf02d

Browse files
author
Marti Bolivar
committed
Merge branch 'fix_asserts'
2 parents 4ed8406 + 06ff573 commit 26bf02d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

libmaple/libmaple.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@
3434
#include "libmaple_types.h"
3535

3636
// General configuration
37-
#define MAPLE_DEBUG 1
37+
#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
3844

3945
// MCU-specific configuration
4046
#ifdef MCU_STM32F103RB

libmaple/util.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ void throb(void);
7777
/* Asserts for sanity checks, redefine DEBUG_LEVEL in libmaple.h to
7878
* compile out these checks */
7979

80-
#define DEBUG_NONE 0
81-
#define DEBUG_FAULT 1
82-
#define DEBUG_ALL 2
83-
8480
#if DEBUG_LEVEL >= DEBUG_ALL
8581
#define ASSERT(exp) \
8682
if (exp) { \

0 commit comments

Comments
 (0)