STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros
debug.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"

Go to the source code of this file.

Macros

#define LWIP_DBG_LEVEL_ALL   0x00
 
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL /* compatibility define only */
 
#define LWIP_DBG_LEVEL_WARNING   0x01 /* bad checksums, dropped packets, ... */
 
#define LWIP_DBG_LEVEL_SERIOUS   0x02 /* memory allocation failures, ... */
 
#define LWIP_DBG_LEVEL_SEVERE   0x03
 
#define LWIP_DBG_MASK_LEVEL   0x03
 
#define LWIP_DBG_ON   0x80U
 
#define LWIP_DBG_OFF   0x00U
 
#define LWIP_DBG_TRACE   0x40U
 
#define LWIP_DBG_STATE   0x20U
 
#define LWIP_DBG_FRESH   0x10U
 
#define LWIP_DBG_HALT   0x08U
 
#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)
 

Macro Definition Documentation

#define LWIP_ASSERT (   message,
  assertion 
)
Value:
do { if(!(assertion)) \
LWIP_PLATFORM_ASSERT(message); } while(0)
#define LWIP_PLATFORM_ASSERT(x)
Definition: cc.h:93

LWIP_NOASSERT: Disable LWIP_ASSERT checks. – To disable assertions define LWIP_NOASSERT in arch/cc.h.

Definition at line 70 of file debug.h.

#define LWIP_DBG_FRESH   0x10U

flag for LWIP_DEBUGF indicating newly added code, not thoroughly tested yet

Definition at line 61 of file debug.h.

#define LWIP_DBG_HALT   0x08U

flag for LWIP_DEBUGF to halt after printing this debug message

Definition at line 63 of file debug.h.

#define LWIP_DBG_LEVEL_ALL   0x00

lower two bits indicate debug level

  • 0 all
  • 1 warning
  • 2 serious
  • 3 severe

Definition at line 44 of file debug.h.

#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL /* compatibility define only */

Definition at line 45 of file debug.h.

#define LWIP_DBG_LEVEL_SERIOUS   0x02 /* memory allocation failures, ... */

Definition at line 47 of file debug.h.

#define LWIP_DBG_LEVEL_SEVERE   0x03

Definition at line 48 of file debug.h.

#define LWIP_DBG_LEVEL_WARNING   0x01 /* bad checksums, dropped packets, ... */

Definition at line 46 of file debug.h.

#define LWIP_DBG_MASK_LEVEL   0x03

Definition at line 49 of file debug.h.

#define LWIP_DBG_OFF   0x00U

flag for LWIP_DEBUGF to disable that debug message

Definition at line 54 of file debug.h.

#define LWIP_DBG_ON   0x80U

flag for LWIP_DEBUGF to enable that debug message

Definition at line 52 of file debug.h.

#define LWIP_DBG_STATE   0x20U

flag for LWIP_DEBUGF indicating a state debug message (to follow module states)

Definition at line 59 of file debug.h.

#define LWIP_DBG_TRACE   0x40U

flag for LWIP_DEBUGF indicating a tracing message (to follow program flow)

Definition at line 57 of file debug.h.

#define LWIP_DEBUGF (   debug,
  message 
)

Definition at line 113 of file debug.h.

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

Definition at line 89 of file debug.h.

#define LWIP_PLATFORM_ERROR (   message)    LWIP_PLATFORM_ASSERT(message)

if "expression" isn't true, then print "message" and execute "handler" expression

Definition at line 82 of file debug.h.