f
Fork of lwip by
trunk/Core/arch/cc.h@0:5e1631496985, 2012-05-08 (annotated)
- Committer:
- root@mbed.org
- Date:
- Tue May 08 15:32:10 2012 +0100
- Revision:
- 0:5e1631496985
initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
root@mbed.org | 0:5e1631496985 | 1 | /* |
root@mbed.org | 0:5e1631496985 | 2 | * Author: Adam Dunkels <adam@sics.se> |
root@mbed.org | 0:5e1631496985 | 3 | * |
root@mbed.org | 0:5e1631496985 | 4 | */ |
root@mbed.org | 0:5e1631496985 | 5 | #ifndef __LWIP_ARCH_CC_H__ |
root@mbed.org | 0:5e1631496985 | 6 | #define __LWIP_ARCH_CC_H__ |
root@mbed.org | 0:5e1631496985 | 7 | |
root@mbed.org | 0:5e1631496985 | 8 | #define LITTLE_ENDIAN 1234 |
root@mbed.org | 0:5e1631496985 | 9 | |
root@mbed.org | 0:5e1631496985 | 10 | #define BYTE_ORDER LITTLE_ENDIAN |
root@mbed.org | 0:5e1631496985 | 11 | |
root@mbed.org | 0:5e1631496985 | 12 | typedef unsigned char u8_t; |
root@mbed.org | 0:5e1631496985 | 13 | typedef signed char s8_t; |
root@mbed.org | 0:5e1631496985 | 14 | typedef unsigned short u16_t; |
root@mbed.org | 0:5e1631496985 | 15 | typedef signed short s16_t; |
root@mbed.org | 0:5e1631496985 | 16 | typedef unsigned int u32_t; |
root@mbed.org | 0:5e1631496985 | 17 | typedef signed int s32_t; |
root@mbed.org | 0:5e1631496985 | 18 | typedef unsigned int mem_ptr_t; |
root@mbed.org | 0:5e1631496985 | 19 | |
root@mbed.org | 0:5e1631496985 | 20 | #ifndef NULL |
root@mbed.org | 0:5e1631496985 | 21 | #define NULL 0 |
root@mbed.org | 0:5e1631496985 | 22 | #endif |
root@mbed.org | 0:5e1631496985 | 23 | |
root@mbed.org | 0:5e1631496985 | 24 | #ifndef TRUE |
root@mbed.org | 0:5e1631496985 | 25 | #define TRUE 1 |
root@mbed.org | 0:5e1631496985 | 26 | #endif |
root@mbed.org | 0:5e1631496985 | 27 | |
root@mbed.org | 0:5e1631496985 | 28 | #ifndef FALSE |
root@mbed.org | 0:5e1631496985 | 29 | #define FALSE 0 |
root@mbed.org | 0:5e1631496985 | 30 | #endif |
root@mbed.org | 0:5e1631496985 | 31 | |
root@mbed.org | 0:5e1631496985 | 32 | #define LWIP_PLATFORM_DIAG(x) printf x |
root@mbed.org | 0:5e1631496985 | 33 | #define LWIP_PLATFORM_ASSERT(x) |
root@mbed.org | 0:5e1631496985 | 34 | |
root@mbed.org | 0:5e1631496985 | 35 | #define LWIP_PROVIDE_ERRNO |
root@mbed.org | 0:5e1631496985 | 36 | |
root@mbed.org | 0:5e1631496985 | 37 | #define U16_F "hu" |
root@mbed.org | 0:5e1631496985 | 38 | #define S16_F "hd" |
root@mbed.org | 0:5e1631496985 | 39 | #define X16_F "hx" |
root@mbed.org | 0:5e1631496985 | 40 | #define U32_F "lu" |
root@mbed.org | 0:5e1631496985 | 41 | #define S32_F "ld" |
root@mbed.org | 0:5e1631496985 | 42 | #define X32_F "lx" |
root@mbed.org | 0:5e1631496985 | 43 | |
root@mbed.org | 0:5e1631496985 | 44 | #define PACK_STRUCT_FIELD(x) __packed x |
root@mbed.org | 0:5e1631496985 | 45 | #define PACK_STRUCT_STRUCT |
root@mbed.org | 0:5e1631496985 | 46 | #define PACK_STRUCT_BEGIN __packed |
root@mbed.org | 0:5e1631496985 | 47 | #define PACK_STRUCT_END |
root@mbed.org | 0:5e1631496985 | 48 | |
root@mbed.org | 0:5e1631496985 | 49 | |
root@mbed.org | 0:5e1631496985 | 50 | #endif /* __LWIP_ARCH_CC_H__ */ |