Преглед на файлове

【修改】添加 tcpip 线程栈大小检查

Signed-off-by: chenyong <1521761801@qq.com>
chenyong преди 6 години
родител
ревизия
eab8a5bf19
променени са 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)