Ver Fonte

add MEMP_NUM_NETCONN in lwipopts

balbekova há 8 anos atrás
pai
commit
c2fe4076a1
1 ficheiros alterados com 6 adições e 0 exclusões
  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