瀏覽代碼

Merge pull request #36 from Lawlieta/master

【修改】添加 tcpip 线程栈大小检查
朱天龙 (Armink) 6 年之前
父節點
當前提交
b65405a1f7
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tftp/tftp_port.c

+ 4 - 0
tftp/tftp_port.c

@@ -26,6 +26,10 @@
 #include <dfs_posix.h>
 #include <lwip/apps/tftp_server.h>
 
+#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
+
 static struct tftp_context ctx;
 
 static void* tftp_open(const char* fname, const char* mode, u8_t write)