ConOpSys V2970  P004.07
ANVILEX control operating system
Macros
debug.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.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 LWIP_DBG_MASK_LEVEL   0x03
 
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL
 
#define LWIP_ASSERT(message, assertion)
 
#define LWIP_PLATFORM_ERROR(message)   LWIP_PLATFORM_ASSERT(message)
 
#define LWIP_ERROR(message, expression, handler)
 
#define LWIP_DEBUGF(debug, message)
 
Debug level (LWIP_DBG_MIN_LEVEL)
#define LWIP_DBG_LEVEL_ALL   0x00
 
#define LWIP_DBG_LEVEL_WARNING   0x01
 
#define LWIP_DBG_LEVEL_SERIOUS   0x02
 
#define LWIP_DBG_LEVEL_SEVERE   0x03
 
Enable/disable debug messages completely (LWIP_DBG_TYPES_ON)
#define LWIP_DBG_ON   0x80U
 
#define LWIP_DBG_OFF   0x00U
 
Debug message types (LWIP_DBG_TYPES_ON)
#define LWIP_DBG_TRACE   0x40U
 
#define LWIP_DBG_STATE   0x20U
 
#define LWIP_DBG_FRESH   0x10U
 
#define LWIP_DBG_HALT   0x08U
 

Detailed Description

Debug messages infrastructure

Macro Definition Documentation

◆ LWIP_ASSERT

#define LWIP_ASSERT (   message,
  assertion 
)
Value:
do { if (!(assertion)) { \
LWIP_PLATFORM_ASSERT(message); }} while(0)

◆ LWIP_DEBUGF

#define LWIP_DEBUGF (   debug,
  message 
)

Enable debug message printing, but only if debug message type is enabled AND is of correct type AND is at least LWIP_DBG_LEVEL.

◆ LWIP_ERROR

#define LWIP_ERROR (   message,
  expression,
  handler 
)
Value:
do { if (!(expression)) { \
LWIP_PLATFORM_ERROR(message); handler;}} while(0)

◆ LWIP_PLATFORM_ERROR

#define LWIP_PLATFORM_ERROR (   message)    LWIP_PLATFORM_ASSERT(message)