uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cc.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Macros

#define BYTE_ORDER   LITTLE_ENDIAN
 
#define LWIP_ERR_T   int
 
#define U16_F   "u"
 
#define S16_F   "d"
 
#define X16_F   "x"
 
#define U32_F   "u"
 
#define S32_F   "d"
 
#define X32_F   "x"
 
#define PACK_STRUCT_FIELD(x)   x
 
#define PACK_STRUCT_STRUCT   __attribute__((packed))
 
#define PACK_STRUCT_BEGIN
 
#define PACK_STRUCT_END
 
#define LWIP_PLATFORM_DIAG2(...)   fprintf(stderr, __VA_ARGS__)
 
#define LWIP_PLATFORM_DIAG(x)   LWIP_PLATFORM_DIAG2 x
 
#define LWIP_PLATFORM_ASSERT(x)
 

Typedefs

typedef uint8_t u8_t
 
typedef int8_t s8_t
 
typedef uint16_t u16_t
 
typedef int16_t s16_t
 
typedef uint32_t u32_t
 
typedef int32_t s32_t
 
typedef uintptr_t mem_ptr_t
 

Macro Definition Documentation

#define BYTE_ORDER   LITTLE_ENDIAN

Definition at line 11 of file cc.h.

#define LWIP_ERR_T   int

Definition at line 23 of file cc.h.

#define LWIP_PLATFORM_ASSERT (   x)
Value:
do { \
fprintf(stderr, "Assert \"%s\" failed at line %d in %s\n", x, __LINE__, __FILE__); \
exit(-1); \
} while(0)

Definition at line 42 of file cc.h.

#define LWIP_PLATFORM_DIAG (   x)    LWIP_PLATFORM_DIAG2 x

Definition at line 41 of file cc.h.

#define LWIP_PLATFORM_DIAG2 (   ...)    fprintf(stderr, __VA_ARGS__)

Definition at line 40 of file cc.h.

#define PACK_STRUCT_BEGIN

Definition at line 36 of file cc.h.

#define PACK_STRUCT_END

Definition at line 37 of file cc.h.

#define PACK_STRUCT_FIELD (   x)    x

Definition at line 34 of file cc.h.

PACK_STRUCT_END PACK_STRUCT_BEGIN struct ip_addr2 PACK_STRUCT_STRUCT   __attribute__((packed))

Definition at line 35 of file cc.h.

#define S16_F   "d"

Definition at line 27 of file cc.h.

#define S32_F   "d"

Definition at line 30 of file cc.h.

#define U16_F   "u"

Definition at line 26 of file cc.h.

#define U32_F   "u"

Definition at line 29 of file cc.h.

#define X16_F   "x"

Definition at line 28 of file cc.h.

#define X32_F   "x"

Definition at line 31 of file cc.h.

Typedef Documentation

typedef uintptr_t mem_ptr_t

Definition at line 21 of file cc.h.

typedef int16_t s16_t

Definition at line 17 of file cc.h.

typedef int32_t s32_t

Definition at line 19 of file cc.h.

typedef int8_t s8_t

Definition at line 15 of file cc.h.

typedef uint16_t u16_t

Definition at line 16 of file cc.h.

typedef uint32_t u32_t

Definition at line 18 of file cc.h.

typedef uint8_t u8_t

Definition at line 14 of file cc.h.