EthernetNetIf Compatibility.

Dependents:   XBeeWiFi_SPI_example

Fork of NetServicesSource by Donatien Garnier

Committer:
donatien
Date:
Tue Jul 27 15:59:42 2010 +0000
Revision:
5:dd63a1e02b1b
Parent:
0:632c9925f013

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
donatien 0:632c9925f013 1 /*
donatien 0:632c9925f013 2 * Author: Adam Dunkels <adam@sics.se>
donatien 0:632c9925f013 3 *
donatien 0:632c9925f013 4 */
donatien 0:632c9925f013 5 #ifndef __LWIP_ARCH_CC_H__
donatien 0:632c9925f013 6 #define __LWIP_ARCH_CC_H__
donatien 0:632c9925f013 7
donatien 0:632c9925f013 8 #define LITTLE_ENDIAN 1234
donatien 0:632c9925f013 9
donatien 0:632c9925f013 10 #define BYTE_ORDER LITTLE_ENDIAN
donatien 0:632c9925f013 11
donatien 0:632c9925f013 12 typedef unsigned char u8_t;
donatien 0:632c9925f013 13 typedef signed char s8_t;
donatien 0:632c9925f013 14 typedef unsigned short u16_t;
donatien 0:632c9925f013 15 typedef signed short s16_t;
donatien 0:632c9925f013 16 typedef unsigned int u32_t;
donatien 0:632c9925f013 17 typedef signed int s32_t;
donatien 0:632c9925f013 18 typedef unsigned int mem_ptr_t;
donatien 0:632c9925f013 19
donatien 0:632c9925f013 20 #ifndef NULL
donatien 0:632c9925f013 21 #define NULL 0
donatien 0:632c9925f013 22 #endif
donatien 0:632c9925f013 23
donatien 0:632c9925f013 24 #ifndef TRUE
donatien 0:632c9925f013 25 #define TRUE 1
donatien 0:632c9925f013 26 #endif
donatien 0:632c9925f013 27
donatien 0:632c9925f013 28 #ifndef FALSE
donatien 0:632c9925f013 29 #define FALSE 0
donatien 0:632c9925f013 30 #endif
donatien 0:632c9925f013 31
donatien 5:dd63a1e02b1b 32 #include <stdlib.h>
donatien 5:dd63a1e02b1b 33 #define LWIP_RAND rand
donatien 0:632c9925f013 34
donatien 0:632c9925f013 35 #define LWIP_PLATFORM_DIAG(x) DBG x
donatien 0:632c9925f013 36 #define LWIP_PLATFORM_ASSERT(x) DBG(x)
donatien 0:632c9925f013 37
donatien 0:632c9925f013 38 #define LWIP_PROVIDE_ERRNO
donatien 0:632c9925f013 39
donatien 0:632c9925f013 40 #define U16_F "hu"
donatien 0:632c9925f013 41 #define S16_F "hd"
donatien 0:632c9925f013 42 #define X16_F "hx"
donatien 0:632c9925f013 43 #define U32_F "lu"
donatien 0:632c9925f013 44 #define S32_F "ld"
donatien 0:632c9925f013 45 #define X32_F "lx"
donatien 0:632c9925f013 46
donatien 0:632c9925f013 47 #if 0
donatien 0:632c9925f013 48 /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html,
donatien 0:632c9925f013 49 lwIP uses packed structures, so packing the field is not really a good idea ;) */
donatien 0:632c9925f013 50 #define PACK_STRUCT_FIELD(x) __packed x
donatien 0:632c9925f013 51 #else
donatien 0:632c9925f013 52 #define PACK_STRUCT_FIELD(x) x
donatien 0:632c9925f013 53 #endif
donatien 0:632c9925f013 54
donatien 0:632c9925f013 55 #define PACK_STRUCT_STRUCT
donatien 0:632c9925f013 56 #define PACK_STRUCT_BEGIN __packed
donatien 0:632c9925f013 57 #define PACK_STRUCT_END
donatien 0:632c9925f013 58
donatien 5:dd63a1e02b1b 59 #define LWIP_CHKSUM_ALGORITHM 3
donatien 5:dd63a1e02b1b 60
donatien 0:632c9925f013 61
donatien 0:632c9925f013 62 #endif /* __LWIP_ARCH_CC_H__ */