Selaa lähdekoodia

add MEMP_NUM_NETCONN option for lwip 1.4.1

SummerGift 7 vuotta sitten
vanhempi
commit
7fc26a8486
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      components/net/lwip-1.4.1/src/lwipopts.h

+ 5 - 0
components/net/lwip-1.4.1/src/lwipopts.h

@@ -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