Skip to content

Commit

Permalink
Merge branch 'fix_asserts'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marti Bolivar committed Oct 7, 2010
2 parents 4ed8406 + 06ff573 commit 26bf02d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 7 additions & 1 deletion libmaple/libmaple.h
Expand Up @@ -34,7 +34,13 @@
#include "libmaple_types.h"

// General configuration
#define MAPLE_DEBUG 1
#define DEBUG_NONE 0
#define DEBUG_FAULT 1
#define DEBUG_ALL 2

#ifndef DEBUG_LEVEL
#define DEBUG_LEVEL DEBUG_ALL
#endif

// MCU-specific configuration
#ifdef MCU_STM32F103RB
Expand Down
4 changes: 0 additions & 4 deletions libmaple/util.h
Expand Up @@ -77,10 +77,6 @@ void throb(void);
/* Asserts for sanity checks, redefine DEBUG_LEVEL in libmaple.h to
* compile out these checks */

#define DEBUG_NONE 0
#define DEBUG_FAULT 1
#define DEBUG_ALL 2

#if DEBUG_LEVEL >= DEBUG_ALL
#define ASSERT(exp) \
if (exp) { \
Expand Down

0 comments on commit 26bf02d

Please sign in to comment.