46 #define BYTE_ORDER LITTLE_ENDIAN
48 #define BYTE_ORDER BIG_ENDIAN
52 typedef unsigned char u8_t;
53 typedef signed char s8_t;
54 typedef unsigned short u16_t;
55 typedef signed short s16_t;
56 typedef unsigned long u32_t;
57 typedef signed long s32_t;
58 typedef unsigned long mem_ptr_t;
71 #define PACK_STRUCT_FIELD(x) x
72 #define PACK_STRUCT_STRUCT __attribute__((packed))
73 #define PACK_STRUCT_BEGIN
74 #define PACK_STRUCT_END
79 #define LWIP_PLATFORM_DIAG(x) os_printf x
80 #define LWIP_PLATFORM_ASSERT(x) ETS_ASSERT(x)
82 #define LWIP_PLATFORM_DIAG(x)
83 #define LWIP_PLATFORM_ASSERT(x)
86 #define SYS_ARCH_DECL_PROTECT(x)
87 #define SYS_ARCH_PROTECT(x)
88 #define SYS_ARCH_UNPROTECT(x)
90 #define LWIP_PLATFORM_BYTESWAP 1
91 #define LWIP_PLATFORM_HTONS(_n) ((u16_t)((((_n) & 0xff) << 8) | (((_n) >> 8) & 0xff)))
92 #define LWIP_PLATFORM_HTONL(_n) ((u32_t)( (((_n) & 0xff) << 24) | (((_n) & 0xff00) << 8) | (((_n) >> 8) & 0xff00) | (((_n) >> 24) & 0xff) ))
95 extern u8_t memp_memory_RAW_PCB_base[];
99 extern u8_t memp_memory_UDP_PCB_base[];
103 extern u8_t memp_memory_TCP_PCB_base[];
104 extern u8_t memp_memory_TCP_PCB_LISTEN_base[];
105 extern u8_t memp_memory_TCP_SEG_base[] SHMEM_ATTR;
108 #if (!NO_SYS || (NO_SYS && !NO_SYS_NO_TIMERS))
109 extern u8_t memp_memory_SYS_TIMEOUT_base[];
112 extern u8_t memp_memory_PBUF_base[];
113 extern u8_t memp_memory_PBUF_POOL_base[];