-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdebug.h
43 lines (30 loc) · 1.15 KB
/
debug.h
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
33
34
35
36
37
38
39
40
41
42
43
#ifndef DEBUG_H
#define DEBUG_H
//-----------------------------------------------------------------------------
#include "config.h"
//-----------------------------------------------------------------------------
// DESCRIPTION
/******************************************************************************
Single-wire UART console library for sending debug info from AVR device
See Readme.md for instructions
https://github.com/specadmin/avr-debug
******************************************************************************/
// CONFIGURATION FILE OPTIONS
/******************************************************************************
******************************************************************************/
//-----------------------------------------------------------------------------
#include "RAM_guard.h"
#ifdef DEBUG
#include "debug_def.h"
#else
#define DEBUG_INIT()
#define DSTR(str)
#define DSTRN(str)
#define DUMP_MEM(ptr,size)
#define DREG(reg)
#define DVAR(var)
#define DHEX(var)
#define DHEX8(count, ...)
#endif
//-----------------------------------------------------------------------------
#endif