VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
debug.h File Reference

The file defines debug macros. More...

#include <mbed.h>
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VITROIO_DEBUG_HINFO(module, format, ...)
 
#define VITROIO_DEBUG_INFO(module, format, ...)
 
#define VITROIO_DEBUG_WARNING(module, format, ...)
 
#define VITROIO_DEBUG_ERROR(module, format, ...)
 

Detailed Description

The file defines debug macros.

There are 4 debug levels (from highest to lowest):

  • HINFO
  • INFO
  • WARNING
  • ERROR When some level is defined, the defined one and all of lower levels are enabled.
Attention
Definition of debug level have to define the name of mbed serial port global variable. For instance, when the WARNING level is to be enabled, the user should define: VITROIO_DEBUG_WARNING_LEVEL=pc where pc is a variable name of mbed serial port declared in another file.

Macro Definition Documentation

◆ VITROIO_DEBUG_ERROR

#define VITROIO_DEBUG_ERROR (   module,
  format,
  ... 
)

◆ VITROIO_DEBUG_HINFO

#define VITROIO_DEBUG_HINFO (   module,
  format,
  ... 
)

◆ VITROIO_DEBUG_INFO

#define VITROIO_DEBUG_INFO (   module,
  format,
  ... 
)

◆ VITROIO_DEBUG_WARNING

#define VITROIO_DEBUG_WARNING (   module,
  format,
  ... 
)