Serves a webpage and saves the user entered data in a .txt file all on the MBED
Fork of EthernetNetIf by
Diff: LPC1768/lwip/lwipopts.h
- Revision:
- 1:ba68cceb2917
- Parent:
- 0:422060928e37
- Child:
- 3:0401477beaa3
--- a/LPC1768/lwip/lwipopts.h Fri Jun 11 16:25:22 2010 +0000 +++ b/LPC1768/lwip/lwipopts.h Fri Jun 18 09:20:27 2010 +0000 @@ -57,16 +57,16 @@ #define TCPDUMP_DEBUG LWIP_DBG_OFF #define PPP_DEBUG LWIP_DBG_OFF -#define MEM_DEBUG LWIP_DBG_OFF -#define MEMP_DEBUG LWIP_DBG_OFF -#define PBUF_DEBUG LWIP_DBG_OFF +#define MEM_DEBUG LWIP_DBG_ON +#define MEMP_DEBUG LWIP_DBG_ON +#define PBUF_DEBUG LWIP_DBG_ON #define API_LIB_DEBUG LWIP_DBG_OFF #define API_MSG_DEBUG LWIP_DBG_OFF -#define TCPIP_DEBUG LWIP_DBG_ON +#define TCPIP_DEBUG LWIP_DBG_OFF #define NETIF_DEBUG LWIP_DBG_OFF #define SOCKETS_DEBUG LWIP_DBG_OFF #define DEMO_DEBUG LWIP_DBG_OFF -#define IP_DEBUG LWIP_DBG_ON +#define IP_DEBUG LWIP_DBG_OFF #define IP_REASS_DEBUG LWIP_DBG_OFF #define RAW_DEBUG LWIP_DBG_OFF #define ICMP_DEBUG LWIP_DBG_OFF @@ -81,6 +81,7 @@ #define TCP_QLEN_DEBUG LWIP_DBG_OFF #define TCP_RST_DEBUG LWIP_DBG_OFF #define ETHARP_DEBUG LWIP_DBG_OFF +#define DNS_DEBUG LWIP_DBG_OFF #endif @@ -108,10 +109,13 @@ /* MEM_SIZE: the size of the heap memory. If the application will send a lot of data that needs to be copied, this should be set high. */ //#define MEM_SIZE 10240 -#define MEM_SIZE 2000//5000 + +#if TARGET_LPC1768 + + +#define MEM_SIZE 5000 //2000 /// -#if TARGET_LPC1768 #define MEM_POSITION __attribute((section("AHBSRAM0"))) @@ -155,7 +159,7 @@ #define PBUF_POOL_SIZE 8//16//100 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ -#define PBUF_POOL_BUFSIZE 128 +//#define PBUF_POOL_BUFSIZE 128 /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a link level header. */ @@ -178,14 +182,14 @@ /* TCP Maximum segment size. */ //#define TCP_MSS 1024 -#define TCP_MSS 0x276//536//0x276 +#define TCP_MSS 1024//0x276//536//0x276 /* TCP sender buffer space (bytes). */ -#define TCP_SND_BUF 2048 +#define TCP_SND_BUF 2048//2048 /* TCP sender buffer space (pbufs). This must be at least = 2 * TCP_SND_BUF/TCP_MSS for things to work. */ -#define TCP_SND_QUEUELEN (3 * TCP_SND_BUF/TCP_MSS)//(4 * TCP_SND_BUF/TCP_MSS) +#define TCP_SND_QUEUELEN (8 * TCP_SND_BUF/TCP_MSS)//(4 * TCP_SND_BUF/TCP_MSS) /* TCP writable space (bytes). This must be less than or equal to TCP_SND_BUF. It is the amount of space which must be @@ -203,7 +207,7 @@ #elif TARGET_LPC2368 -#define MEM_POSITION +#define MEM_POSITION __attribute((section("AHBSRAM1"))) /* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application sends a lot of data out of ROM (or other static memory), this @@ -220,7 +224,7 @@ #define MEMP_NUM_TCP_PCB 2 /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections. */ -#define MEMP_NUM_TCP_PCB_LISTEN 1//4 +#define MEMP_NUM_TCP_PCB_LISTEN 2//4 /* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. */ #define MEMP_NUM_TCP_SEG 8 @@ -242,10 +246,10 @@ /* ---------- Pbuf options ---------- */ /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ -#define PBUF_POOL_SIZE 4//16//100 +#define PBUF_POOL_SIZE 8//16//100 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ -#define PBUF_POOL_BUFSIZE 128 +//#define PBUF_POOL_BUFSIZE 128 /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a link level header. */ @@ -268,14 +272,14 @@ /* TCP Maximum segment size. */ //#define TCP_MSS 1024 -#define TCP_MSS 0x276//536//0x276 +#define TCP_MSS 512//0x276//536//0x276 /* TCP sender buffer space (bytes). */ -#define TCP_SND_BUF 1024 +#define TCP_SND_BUF 1024//2048 /* TCP sender buffer space (pbufs). This must be at least = 2 * TCP_SND_BUF/TCP_MSS for things to work. */ -#define TCP_SND_QUEUELEN (3 * TCP_SND_BUF/TCP_MSS)//(4 * TCP_SND_BUF/TCP_MSS) +#define TCP_SND_QUEUELEN (4 * TCP_SND_BUF/TCP_MSS)//(4 * TCP_SND_BUF/TCP_MSS) /* TCP writable space (bytes). This must be less than or equal to TCP_SND_BUF. It is the amount of space which must be @@ -283,7 +287,7 @@ #define TCP_SNDLOWAT (TCP_SND_BUF/2) /* TCP receive window. */ -#define TCP_WND 1024 //8096 +#define TCP_WND 512 //8096 /* Maximum number of retransmissions of data segments. */ //#define TCP_MAXRTX 12