#ifndef __LWIPOPTS_H__ #define __LWIPOPTS_H__ int my_memcmp(const void *a, const void *b, unsigned int len); void my_memcpy(void *dst, const void *src, unsigned int len); int my_strncmp(const char *s1, const char *s2, unsigned int len); #define MEMCPY(dst,src,len) my_memcpy(dst,src,len) #define SMEMCPY(dst,src,len) my_memcpy(dst,src,len) #define MEMCMP(s1,s2,len) my_memcmp(s1,s2,len) #define STRNCMP(s1,s2,len) my_strncmp(s1,s2,len) #define MY_MODE 0 void Toggle(void); #define SLIP_RX_FROM_ISR 1 #define LWIP_SNMP 0//0//1 #define MEMP_SEPARATE_POOLS 0//1 #define SYS_LIGHTWEIGHT_PROT 0 #define NO_SYS 1 #define NO_SYS_NO_TIMERS 0 #define MEM_SIZE 2048 /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool (PBUF_POOL). */ #define PBUF_POOL_SIZE 8//16 #define LWIP_ARP 1//0 //#define ARP_TABLE_SIZE 0 #define IP_FORWARD 0//0 #define IP_OPTIONS_ALLOWED 1 #define IP_REASSEMBLY MY_MODE//0 #define IP_FRAG 0//0 #define LWIP_RAW 0//0 #define LWIP_UDP 1 #define LWIP_TCP MY_MODE//0 #define PBUF_POOL_BUFSIZE 256 #define LWIP_HAVE_SLIPIF 1 #define LWIP_SOCKET 0 #define LWIP_NETCONN 0 #define LWIP_TCPIP_TIMEOUT 0 /* MEMP_NUM_PBUF: the number of memp struct pbufs (used for PBUF_ROM and PBUF_REF). */ #define MEMP_NUM_PBUF 16 #if !LWIP_RAW #define MEMP_NUM_RAW_PCB 1//0 #endif #if LWIP_UDP #define MEMP_NUM_UDP_PCB 2 #else #define MEMP_NUM_UDP_PCB 0 #endif #if LWIP_TCP #define MEMP_NUM_TCP_PCB 2 #define MEMP_NUM_TCP_PCB_LISTEN 1 #define MEMP_NUM_TCP_SEG 8 #define TCP_WND (2 * TCP_MSS) #define TCP_QUEUE_OOSEQ 1//0 #define TCP_CALCULATE_EFF_SEND_MSS 1//0 #define TCP_OVERSIZE 1//0 #else #define MEMP_NUM_TCP_PCB 0 #define MEMP_NUM_TCP_PCB_LISTEN 0 #define MEMP_NUM_TCP_SEG 0 #endif #define MEMP_NUM_REASSDATA 0 #define MEMP_NUM_FRAG_PBUF 0 #define MEMP_NUM_ARP_QUEUE 0 #define MEMP_NUM_IGMP_GROUP 0 #if NO_SYS_NO_TIMERS #define MEMP_NUM_SYS_TIMEOUT 0 #else #define MEMP_NUM_SYS_TIMEOUT 5 #endif #define MEMP_NUM_NETBUF 0 #define MEMP_NUM_NETCONN 0 #define MEMP_NUM_TCPIP_MSG_API 0 #define MEMP_NUM_TCPIP_MSG_INPKT 0 #define MEMP_NUM_SNMP_NODE 0 #define MEMP_NUM_SNMP_ROOTNODE 0 #define MEMP_NUM_SNMP_VARBIND 0 #define MEMP_NUM_SNMP_VALUE 0 #define MEMP_NUM_NETDB 0 #define MEMP_NUM_LOCALHOSTLIST 0 #define MEMP_NUM_PPPOE_INTERFACES 0 #define LWIP_STATS 0 #if LWIP_STATS // TODO #else #define LINK_STATS 0 #define IP_STATS 0 #define IPFRAG_STATS 0 #define ICMP_STATS 0 #define IGMP_STATS 0 #define UDP_STATS 0 #define TCP_STATS 0 #define MEM_STATS 0 #define MEMP_STATS 0 #define SYS_STATS 0 #define LWIP_STATS_DISPLAY 0 #define IP6_STATS 0 #define ICMP6_STATS 0 #define IP6_FRAG_STATS 0 #define MLD6_STATS 0 #define ND6_STATS 0 #endif /* LWIP_STATS */ #endif /* __LWIP_OPT_H__ */