http://mbed.org/users/okini3939/notebook/logger/

Dependencies:   mbed

Committer:
okini3939
Date:
Sat Apr 16 15:15:48 2011 +0000
Revision:
0:a3c892f39cc1

        

Who changed what in which revision?

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