]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/BSP/microblaze_0/libsrc/standalone_v5_4/src/xdebug.h
Update the Microblaze hardware design and BSP to the latest IP and tool versions.
[freertos] / FreeRTOS / Demo / MicroBlaze_Kintex7_EthernetLite / BSP / microblaze_0 / libsrc / standalone_v5_4 / src / xdebug.h
1 #ifndef XDEBUG  /* prevent circular inclusions */
2 #define XDEBUG  /* by using protection macros */
3
4 #if defined(DEBUG) && !defined(NDEBUG)
5
6 #ifndef XDEBUG_WARNING
7 #define XDEBUG_WARNING
8 #warning DEBUG is enabled
9 #endif
10
11 int printf(const char *format, ...);
12
13 #define XDBG_DEBUG_ERROR             0x00000001U    /* error  condition messages */
14 #define XDBG_DEBUG_GENERAL           0x00000002U    /* general debug  messages */
15 #define XDBG_DEBUG_ALL               0xFFFFFFFFU    /* all debugging data */
16
17 #define xdbg_current_types (XDBG_DEBUG_GENERAL)
18
19 #define xdbg_stmnt(x)  x
20
21 #define xdbg_printf(type, ...) (((type) & xdbg_current_types) ? printf (__VA_ARGS__) : 0)
22
23
24 #else /* defined(DEBUG) && !defined(NDEBUG) */
25
26 #define xdbg_stmnt(x)
27
28 #define xdbg_printf(...)
29
30 #endif /* defined(DEBUG) && !defined(NDEBUG) */
31
32 #endif /* XDEBUG */