-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.h
More file actions
32 lines (27 loc) · 983 Bytes
/
debug.h
File metadata and controls
32 lines (27 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//================================================================================
// Defining debugging functions
// Auther: embedded-kiddie (https://github.com/embedded-kiddie)
//================================================================================
#ifndef _DEBUG_H_
#define _DEBUG_H_
//--------------------------------------------------------------------------------
// Enable to output audio information to the Serial Monitor
//--------------------------------------------------------------------------------
#define DEBUG_AUDIO 0
//--------------------------------------------------------------------------------
// Development purposes only
//--------------------------------------------------------------------------------
#define DEBUG 1
#if (DEBUG & 1)
#include <assert.h>
#define DBG_ASSERT(x) assert(x)
#else
#define DBG_ASSERT(x)
#endif
#if (DEBUG & 2)
#include <stdio.h>
#define DBG_EXEC(x) x
#else
#define DBG_EXEC(x)
#endif
#endif // _DEBUG_H_