Host library for controlling a WiConnect enabled Wi-Fi module.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
opt.h
00001 00002 #include <stdint.h> 00003 00004 00005 #define LWIP_SOCKET 1 00006 #define LWIP_TCP 1 00007 #define LWIP_UDPLITE 1 00008 #define LWIP_DNS 1 00009 00010 #define LWIP_DNS_API_DECLARE_H_ERRNO 0 00011 #define LWIP_DNS_API_DEFINE_ERRORS 0 00012 00013 #define LWIP_PLATFORM_BYTESWAP 1 00014 00015 00016 typedef uint8_t u8_t; 00017 typedef uint16_t u16_t; 00018 typedef uint32_t u32_t; 00019 00020 typedef int8_t s8_t; 00021 typedef int16_t s16_t; 00022 typedef int32_t s32_t; 00023 00024 00025 00026 00027 #define PACK_STRUCT_FIELD(x) x __attribute__((packed)) 00028 #define PACK_STRUCT_STRUCT __attribute__((packed)) 00029 #define PACK_STRUCT_BEGIN 00030 #define PACK_STRUCT_END 00031 00032 00033 00034 #define LWIP_PLATFORM_HTONS(x) ( (((u16_t)(x))>>8) | (((x)&0xFF)<<8) ) 00035 #define LWIP_PLATFORM_HTONL(x) ( (((u32_t)(x))>>24) | (((x)&0xFF0000)>>8) \ 00036 | (((x)&0xFF00)<<8) | (((x)&0xFF)<<24) ) 00037 00038 00039 #ifdef LWIP_PLATFORM_BYTESWAP 00040 00041 #define htons LWIP_PLATFORM_HTONS 00042 #define htonl LWIP_PLATFORM_HTONL 00043 #define ntohs LWIP_PLATFORM_HTONS 00044 #define ntohl LWIP_PLATFORM_HTONL 00045 00046 #else 00047 00048 #define htons(x) x 00049 #define htonl(x) x 00050 #define ntohs(x) x 00051 #define ntohl(x) x 00052 00053 #endif
Generated on Tue Jul 12 2022 17:35:58 by 1.7.2