EthernetNetIf

Dependents:   XBee_WiFi_EA_LPC4088

Committer:
hmike
Date:
Wed Nov 19 12:00:42 2014 +0000
Revision:
0:62580107d20c
EthernetNetIf

Who changed what in which revision?

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