5 #include <cyg/error/codes.h>
6 //while EFAULT should have no meaning in eCos since there are no address spaces
7 //it is defined here because set/getsockopt in lwIP use it.
10 //found no better place for this prototype
13 //#define LWIP_PROVIDE_ERRNO
14 #include <cyg/infra/cyg_type.h>
15 #if (CYG_BYTEORDER == CYG_LSBFIRST)
16 #define BYTE_ORDER LITTLE_ENDIAN
18 #define BYTE_ORDER BIG_ENDIAN
22 typedef unsigned char u8_t;
23 typedef signed char s8_t;
24 typedef unsigned short u16_t;
25 typedef signed short s16_t;
26 typedef unsigned long u32_t;
27 typedef signed long s32_t;
28 typedef unsigned long mem_ptr_t;
31 #define PACK_STRUCT_FIELD(x) x __attribute__((packed))
32 #define PACK_STRUCT_STRUCT __attribute__((packed))
33 #define PACK_STRUCT_BEGIN
34 #define PACK_STRUCT_END
36 #include <cyg/infra/diag.h>
37 #include <cyg/infra/cyg_ass.h>
38 #define LWIP_PLATFORM_DIAG(x) {diag_printf x;}
39 #define LWIP_PLATFORM_ASSERT(x) {CYG_FAIL(x);}
41 #define SYS_ARCH_DECL_PROTECT(x)
42 #define SYS_ARCH_PROTECT(x)
43 #define SYS_ARCH_UNPROTECT(x)
45 #endif /* __ARCH_CC_H__ */