Skip to content

Commit 59da84d

Browse files
committed
[lwIP] Remove some default setting; User can re-define these settings or use the default setting in lwip opts.h file
1 parent b7d069c commit 59da84d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

components/net/lwip-1.4.1/src/lwipopts.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,20 @@
123123
#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN
124124
#endif
125125

126-
/* The following four are used only with the sequential API and can be
127-
set to 0 if the application only will use the raw API. */
126+
/*
127+
* You can re-define following setting in rtcofnig.h to overwrite the default
128+
* setting in the lwip opts.h
129+
*/
128130
/* MEMP_NUM_NETBUF: the number of struct netbufs. */
129-
#define MEMP_NUM_NETBUF 2
131+
// #define MEMP_NUM_NETBUF 2
130132
/* MEMP_NUM_NETCONN: the number of struct netconns. */
131-
#define MEMP_NUM_NETCONN 4
133+
// #define MEMP_NUM_NETCONN 4
134+
132135
/* MEMP_NUM_TCPIP_MSG_*: the number of struct tcpip_msg, which is used
133136
for sequential API communication and incoming packets. Used in
134137
src/api/tcpip.c. */
135-
#define MEMP_NUM_TCPIP_MSG_API 16
136-
#define MEMP_NUM_TCPIP_MSG_INPKT 16
138+
// #define MEMP_NUM_TCPIP_MSG_API 16
139+
// #define MEMP_NUM_TCPIP_MSG_INPKT 16
137140

138141
/* ---------- Pbuf options ---------- */
139142
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */

0 commit comments

Comments
 (0)