Sfoglia il codice sorgente

Merge pull request #10 from Lawlieta/master

【修改】添加 tcpip 线程栈大小检查
朱天龙 (Armink) 6 anni fa
parent
commit
e93cdfd6cd
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/webnet.c

+ 4 - 0
src/webnet.c

@@ -34,6 +34,10 @@
 #include <lwip/select.h>
 #endif
 
+#if defined(RT_USING_LWIP) && (RT_LWIP_TCPTHREAD_STACKSIZE < 1408)
+#error The lwIP tcpip thread stack size(RT_LWIP_TCPTHREAD_STACKSIZE) must more than 1408
+#endif
+
 #define DBG_ENABLE
 #define DBG_COLOR
 #define DBG_SECTION_NAME    "wn"