tweak lwipopts.h
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
// #define ETHARP_DEBUG LWIP_DBG_ON
|
||||
|
||||
#define NO_SYS 1
|
||||
#define SYS_LIGHTWEIGHT_PROT 0
|
||||
#define SYS_LIGHTWEIGHT_PROT 1
|
||||
#define LWIP_NETCONN 0
|
||||
#define LWIP_SOCKET 0
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
#define MEM_SIZE (4 * 1024)
|
||||
|
||||
// Pbuf options
|
||||
#define PBUF_POOL_SIZE 4
|
||||
#define PBUF_POOL_BUFSIZE 1524
|
||||
#define PBUF_POOL_SIZE 6
|
||||
#define PBUF_POOL_BUFSIZE 590
|
||||
|
||||
#define MEMP_NUM_PBUF 8 // default 16
|
||||
#define MEMP_NUM_PBUF 6 // default 16
|
||||
|
||||
// TCP options
|
||||
#define LWIP_TCP 1
|
||||
#define TCP_MSS 536
|
||||
#define TCP_SND_BUF (2 * TCP_MSS)
|
||||
#define TCP_WND (2 * TCP_MSS)
|
||||
#define TCP_WND (4 * TCP_MSS)
|
||||
#define TCP_QUEUE_OOSEQ 0
|
||||
|
||||
#define LWIP_UDP 1
|
||||
#define MEMP_NUM_UDP_PCB 2 // # of concurrent UDP "connections"
|
||||
#define MEMP_NUM_UDP_PCB 3 // # of concurrent UDP "connections"
|
||||
#define LWIP_ICMP 1
|
||||
|
||||
#define LWIP_DHCP 1
|
||||
@@ -54,7 +54,7 @@
|
||||
#define CHECKSUM_CHECK_TCP 1
|
||||
#define LWIP_CHECKSUM_ON_COPY 0
|
||||
|
||||
#define LWIP_STATS 1
|
||||
#define LINK_STATS 1
|
||||
#define LWIP_STATS 0
|
||||
#define LINK_STATS 0
|
||||
|
||||
#endif /* __LWIPOPTS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user