japanese tweeting sample with newer version libraries

Dependencies:   TextLCD mbed

Committer:
nxpfan
Date:
Fri Aug 31 08:19:51 2012 +0000
Revision:
0:66c7c9c4f765
version with newer libraries

Who changed what in which revision?

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