未验证 提交 2e0c91a9 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1094 from SummerGGift/add_connnnn

[lwip]:add MEMP_NUM_NETCONN option for lwip
......@@ -98,6 +98,10 @@ config RT_USING_LWIP
config RT_LWIP_PPPOS
bool "PPPoS protocol"
default n
config RT_MEMP_NUM_NETCONN
int "the number of struct netconns"
default 8
config RT_LWIP_PBUF_NUM
int "the number of PBUF"
......
......@@ -93,6 +93,11 @@
should be set high. */
#define MEMP_NUM_PBUF 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". */
#ifdef RT_LWIP_RAW_PCB_NUM
#define MEMP_NUM_RAW_PCB RT_LWIP_RAW_PCB_NUM
......
......@@ -105,6 +105,11 @@
should be set high. */
#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". */
#ifdef RT_LWIP_RAW_PCB_NUM
#define MEMP_NUM_RAW_PCB RT_LWIP_RAW_PCB_NUM
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册