[lwip]:add MEMP_NUM_NETCONN option for lwip

This commit is contained in:
SummerGift 2017-12-09 16:03:46 +08:00
parent 870c1fd15c
commit 2de2d6e433
2 changed files with 9 additions and 0 deletions

View File

@ -99,6 +99,10 @@ config RT_USING_LWIP
bool "PPPoS protocol" bool "PPPoS protocol"
default n default n
config RT_MEMP_NUM_NETCONN
int "the number of struct netconns"
default 8
config RT_LWIP_PBUF_NUM config RT_LWIP_PBUF_NUM
int "the number of PBUF" int "the number of PBUF"
default 16 default 16

View File

@ -105,6 +105,11 @@
should be set high. */ should be set high. */
#define MEMP_NUM_PBUF 32 //16 #define MEMP_NUM_PBUF 32 //16
/* the number of struct netconns */
#ifdef RT_MEMP_NUM_NETCONN
#define MEMP_NUM_NETCONN RT_MEMP_NUM_NETCONN
#endif
/* the number of UDP protocol control blocks. One per active RAW "connection". */ /* the number of UDP protocol control blocks. One per active RAW "connection". */
#ifdef RT_LWIP_RAW_PCB_NUM #ifdef RT_LWIP_RAW_PCB_NUM
#define MEMP_NUM_RAW_PCB RT_LWIP_RAW_PCB_NUM #define MEMP_NUM_RAW_PCB RT_LWIP_RAW_PCB_NUM