ID the MBED processor on the network if you have more than one. View MBED name on DHCP of your Router - Example \"MBED PE\" Change your ID in Core / host.h

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cc.h Source File

cc.h

00001 /*
00002  * Author: Adam Dunkels <adam@sics.se>
00003  *
00004  */
00005 #ifndef __LWIP_ARCH_CC_H__
00006 #define __LWIP_ARCH_CC_H__
00007 
00008 #define LITTLE_ENDIAN 1234
00009 
00010 #define BYTE_ORDER  LITTLE_ENDIAN
00011 
00012 typedef unsigned char   u8_t;
00013 typedef signed char     s8_t;
00014 typedef unsigned short  u16_t;
00015 typedef signed short    s16_t;
00016 typedef unsigned int    u32_t;
00017 typedef signed int      s32_t;
00018 typedef unsigned int    mem_ptr_t;
00019 
00020 #ifndef NULL
00021 #define NULL 0
00022 #endif
00023 
00024 #ifndef TRUE
00025 #define TRUE 1
00026 #endif
00027 
00028 #ifndef FALSE
00029 #define FALSE 0
00030 #endif
00031 
00032 #include <stdlib.h>
00033 #define LWIP_RAND rand
00034 
00035 #define LWIP_PLATFORM_DIAG(x) DBG x
00036 #define LWIP_PLATFORM_ASSERT(x) DBG(x)
00037 
00038 #define LWIP_PROVIDE_ERRNO
00039 
00040 #define U16_F "hu"
00041 #define S16_F "hd"
00042 #define X16_F "hx"
00043 #define U32_F "lu"
00044 #define S32_F "ld"
00045 #define X32_F "lx"
00046 
00047 #if 0 
00048 /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html, 
00049 lwIP uses packed structures, so packing the field is not really a good idea ;) */
00050 #define PACK_STRUCT_FIELD(x) __packed x
00051 #else 
00052 #define PACK_STRUCT_FIELD(x)    x
00053 #endif
00054 
00055 #define PACK_STRUCT_STRUCT
00056 #define PACK_STRUCT_BEGIN __packed
00057 #define PACK_STRUCT_END
00058 
00059 #define LWIP_CHKSUM_ALGORITHM 3
00060 
00061 
00062 #endif /* __LWIP_ARCH_CC_H__ */