TwitterExample with newer library (2012Aug)

Dependencies:   EthernetNetIf HTTPClient mbed

Committer:
nxpfan
Date:
Wed Aug 29 03:50:19 2012 +0000
Revision:
0:075157567b0c
simple twitter example with newer library

Who changed what in which revision?

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