Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Bonjour by
Revision 8:275256b5d807, committed 2014-10-16
- Comitter:
- casiotone401
- Date:
- Thu Oct 16 14:13:21 2014 +0000
- Parent:
- 7:105191e07767
- Commit message:
- minor change
Changed in this revision
lwip/lwipopts.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 105191e07767 -r 275256b5d807 lwip/lwipopts.h --- a/lwip/lwipopts.h Sat Mar 30 00:31:40 2013 +0000 +++ b/lwip/lwipopts.h Thu Oct 16 14:13:21 2014 +0000 @@ -110,7 +110,7 @@ #if TARGET_LPC1768 -#define MEM_SIZE 16362 //2000 +#define MEM_SIZE 13876 //2000 #define CHECKSUM_GEN_UDP 0 #define CHECKSUM_GEN_TCP 0 @@ -132,7 +132,7 @@ #define LWIP_USE_HEAP_FROM_INTERRUPT 0 /// -#define MEM_POSITION __attribute((section("AHBSRAM0"))) +#define MEM_POSITION __attribute((section("AHBSRAM1"),aligned)) /* 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 @@ -143,7 +143,7 @@ //#define MEMP_NUM_RAW_PCB 3 /* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One per active UDP "connection". */ -#define MEMP_NUM_UDP_PCB 8 +#define MEMP_NUM_UDP_PCB 5 /* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP connections. */ #define MEMP_NUM_TCP_PCB 3 @@ -162,7 +162,7 @@ /* MEMP_NUM_NETBUF: the number of struct netbufs. */ #define MEMP_NUM_NETBUF 0 /* MEMP_NUM_NETCONN: the number of struct netconns. */ -#define MEMP_NUM_NETCONN 0 +#define MEMP_NUM_NETCONN 6 /* MEMP_NUM_TCPIP_MSG_*: the number of struct tcpip_msg, which is used for sequential API communication and incoming packets. Used in src/api/tcpip.c. */ @@ -171,14 +171,14 @@ /* ---------- Pbuf options ---------- */ /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ -#define PBUF_POOL_SIZE 24//100 +//#define PBUF_POOL_SIZE 60//100 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ -#define PBUF_POOL_BUFSIZE 512 +#define PBUF_POOL_BUFSIZE 768 /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a link level header. */ -#define PBUF_LINK_HLEN 16 +#define PBUF_LINK_HLEN (14 + ETH_PAD_SIZE) /** SYS_LIGHTWEIGHT_PROT * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection @@ -197,7 +197,7 @@ /* TCP Maximum segment size. */ //#define TCP_MSS 1024 -#define TCP_MSS 0x276//1024//536// +#define TCP_MSS 256//1024//536//0x276 /* TCP sender buffer space (bytes). */ #define TCP_SND_BUF 1024 @@ -351,12 +351,12 @@ /* IP reassembly and segmentation.These are orthogonal even * if they both deal with IP fragments */ - /* + #define IP_REASSEMBLY 1 #define IP_REASS_MAX_PBUFS 10 #define MEMP_NUM_REASSDATA 10 #define IP_FRAG 1 -*/ + /* ---------- ICMP options ---------- */ #define ICMP_TTL 255