ソースを参照

lwip: Use malloc/free for memory allocation. Bump number of TCP connections to 1024.

ambrop7 15 年 前
コミット
f469b6db00
1 ファイル変更3 行追加5 行削除
  1. 3 5
      lwip/custom/lwipopts.h

+ 3 - 5
lwip/custom/lwipopts.h

@@ -49,14 +49,12 @@
 #define PPP_SUPPORT 0
 
 #define MEMP_NUM_TCP_PCB_LISTEN 16
-
+#define MEMP_NUM_TCP_PCB 1024
 #define TCP_MSS 1460
-
-#define MEMP_NUM_TCP_PCB 512
 #define TCP_SND_BUF 16384
 #define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS))
-#define MEMP_NUM_TCP_SEG (MEMP_NUM_TCP_PCB * TCP_SND_QUEUELEN)
 
-#define MEM_SIZE ((4 * MEMP_NUM_TCP_PCB * (TCP_SND_BUF)) + 4194304)
+#define MEM_LIBC_MALLOC 1
+#define MEMP_MEM_MALLOC 1
 
 #endif