瀏覽代碼

add MEMP_NUM_NETCONN in lwipopts

balbekova 7 年之前
父節點
當前提交
c2fe4076a1
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      modules/Ethernet/lwipopts.h

+ 6 - 0
modules/Ethernet/lwipopts.h

@@ -80,6 +80,12 @@ a lot of data that needs to be copied, this should be set high. */
 #define MEMP_NUM_SYS_TIMEOUT    10
 //#define MEMP_NUM_SYS_TIMEOUT    100
 
+/**
+ * MEMP_NUM_NETCONN: the number of struct netconns.
+ * (only needed if you use the sequential API, like api_lib.c)
+ */
+#define MEMP_NUM_NETCONN                8
+
 /* ---------- Pbuf options ---------- */
 /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
 //#define PBUF_POOL_SIZE          15