System abstraction layer. More...

Detailed Description

System abstraction layer.

Describes compiler and processor to lwIP.

Files

file  cc.h
 Compiler/platform abstraction.
 
file  sys_arch.h
 OS abstraction layer.
 

Macros

#define BYTE_ORDER   (LITTLE_ENDIAN)
 platform's endianness
 
#define LWIP_COMPAT_MUTEX   (0)
 System configuration.
 

(sn)printf formatters for the generic lwIP types

#define X8_F   "02" PRIx8
 
#define U16_F   PRIu16
 
#define S16_F   PRId16
 
#define X16_F   PRIx16
 
#define U32_F   PRIu32
 
#define S32_F   PRId32
 
#define X32_F   PRIx32
 
#define SZT_F   "lu"
 

Compiler hints for packing structures

#define PACK_STRUCT_FIELD(x)   x
 
#define PACK_STRUCT_STRUCT   __attribute__((packed))
 
#define PACK_STRUCT_BEGIN
 
#define PACK_STRUCT_END
 

Platform specific diagnostic output

#define LWIP_PLATFORM_DIAG(x)   printf x
 
#define LWIP_PLATFORM_ASSERT(x)
 

Macro Definition Documentation

◆ LWIP_PLATFORM_ASSERT

#define LWIP_PLATFORM_ASSERT (   x)
Value:
do { \
printf("Assertion \"%s\" failed at %s:%d\n", x, __FILE__, __LINE__); \
fflush(NULL); \
abort(); \
} while (0)

Definition at line 95 of file cc.h.