ArduinoMega2560_SPI 1.0
Cargando...
Buscando...
Nada coincide
avr_debugger.h
Ir a la documentación de este archivo.
1#include "avr8-stub.h"
2#include <avr/interrupt.h>
3
4#ifndef AVR_DEBUGGER_H_
5#define AVR_DEBUGGER_H_
6
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#if defined(PLATFORMIO) && defined(__PLATFORMIO_BUILD_DEBUG__)
13 #ifndef __DEBUG__
14 #define __DEBUG__
15 #endif
16#endif
17
18#if defined(__DEBUG__)
19 #define DBG_EXEC(x) x
20#else
21 #define DBG_EXEC(x)
22#endif
23
24#define dbg_breakpoint() { \
25 DBG_EXEC(breakpoint()); \
26 }
27
28#define dbg_init() { \
29 DBG_EXEC(debug_init()); \
30 }
31
32#define dbg_message(x) { \
33 DBG_EXEC(debug_message(x)); \
34 }
35
36#define dbg_start() { \
37 DBG_EXEC(debug_init()); \
38 DBG_EXEC(sei()); \
39 DBG_EXEC(breakpoint()); \
40 }
41
42#ifdef __cplusplus
43}
44#endif
45
46
47#endif /* AVR_DEBUGGER_H_ */