HTTPClient using static IP

Dependencies:   mbed

Committer:
mr_q
Date:
Mon May 30 11:53:37 2011 +0000
Revision:
0:d8f2f7d5f31b
v0.01 Draft

Who changed what in which revision?

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