debug_progmem.h File Reference
#include "FakePgmSpace.h"
Include dependency graph for debug_progmem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_BUILD   1
 
#define DEBUG_PRINT_FILENAME_AND_LINE   0
 
#define ERR   0
 
#define WARN   1
 
#define INFO   2
 
#define DBG   3
 
#define DEBUG_VERBOSE_LEVEL   INFO
 
#define debug_none(fmt, ...)
 
#define MACROCAT2(x, y, z)   x##y##z
 
#define MACROCONCAT(x, y, z)   MACROCAT2(x,y,z)
 
#define MACROQUOT(x)   #x
 
#define MACROQUOTE(x)   MACROQUOT(x)
 
#define debug_e(fmt, ...)
 
#define debug_hex(_level, _tag, _data, _len, ...)
 
#define debug_w   debug_e
 
#define debug_i   debug_e
 
#define debug_d   debug_none
 
#define debugf   debug_i
 

Functions

uint32_t system_get_time ()
 

Macro Definition Documentation

◆ DBG

#define DBG   3

◆ DEBUG_BUILD

#define DEBUG_BUILD   1

◆ debug_d

#define debug_d   debug_none

◆ debug_e

#define debug_e (   fmt,
  ... 
)
Value:
(__extension__({ \
PSTR_ARRAY(fmtbuf, "%u " fmt "\r\n"); \
m_printf(fmtbuf, system_get_time(), ##__VA_ARGS__); \
}))
uint32_t system_get_time()

◆ debug_hex

#define debug_hex (   _level,
  _tag,
  _data,
  _len,
  ... 
)
Value:
{ \
if(DEBUG_VERBOSE_LEVEL >= _level) \
m_printHex(_F(_tag), _data, _len, ##__VA_ARGS__); \
}
#define DEBUG_VERBOSE_LEVEL
Definition: debug_progmem.h:49
#define _F(str)
Definition: FakePgmSpace.h:97

◆ debug_i

#define debug_i   debug_e

◆ debug_none

#define debug_none (   fmt,
  ... 
)
Value:
do { \
} while(0)

◆ DEBUG_PRINT_FILENAME_AND_LINE

#define DEBUG_PRINT_FILENAME_AND_LINE   0

◆ DEBUG_VERBOSE_LEVEL

#define DEBUG_VERBOSE_LEVEL   INFO

◆ debug_w

#define debug_w   debug_e

◆ debugf

#define debugf   debug_i

◆ ERR

#define ERR   0

◆ INFO

#define INFO   2

◆ MACROCAT2

#define MACROCAT2 (   x,
  y,
 
)    x##y##z

◆ MACROCONCAT

#define MACROCONCAT (   x,
  y,
 
)    MACROCAT2(x,y,z)

◆ MACROQUOT

#define MACROQUOT (   x)    #x

◆ MACROQUOTE

#define MACROQUOTE (   x)    MACROQUOT(x)

◆ WARN

#define WARN   1

Function Documentation

◆ system_get_time()

uint32_t system_get_time ( )