瀏覽代碼

add: 完成对w5500库的集成

https://gitee.com/openLuat/LuatOS/issues/I6X7AX
https://gitee.com/openLuat/LuatOS/issues/I6O8G3
Wendal Chen 2 年之前
父節點
當前提交
044bb170cf

+ 7 - 0
cloudbuild/esp32c2-idf5.meta.json

@@ -144,6 +144,13 @@
                         "rsize":5456,
                         "fsize":438832,
                         "dft":false
+                     },
+                     {
+                        "name":"w5500",
+                        "content":"支持w5500以太网",
+                        "rsize":25456,
+                        "fsize":438832,
+                        "dft":false
                      }
                  ]
               },

+ 7 - 0
cloudbuild/esp32c3-idf5.meta.json

@@ -144,6 +144,13 @@
                         "rsize":5456,
                         "fsize":438832,
                         "dft":false
+                     },
+                     {
+                        "name":"w5500",
+                        "content":"支持w5500以太网",
+                        "rsize":25456,
+                        "fsize":438832,
+                        "dft":false
                      }
                  ]
               },

+ 7 - 0
cloudbuild/esp32s3-idf5.meta.json

@@ -144,6 +144,13 @@
                         "rsize":5456,
                         "fsize":438832,
                         "dft":false
+                     },
+                     {
+                        "name":"w5500",
+                        "content":"支持w5500以太网",
+                        "rsize":25456,
+                        "fsize":438832,
+                        "dft":false
                      }
                  ]
               },

+ 13 - 5
luatos/include/luat_conf_bsp.h

@@ -11,15 +11,13 @@
 //custom -->
 //------------------------------------------------------
 
-#define LUAT_USE_NETWORK
-#define LUAT_USE_LWIP
-#define LUAT_USE_DNS
-#define LUAT_USE_TLS
-#define LUAT_USE_SNTP
+// #define LUAT_USE_TLS
+// #define LUAT_USE_SNTP
 // 禁用自动调用网络对时
 // #define LUAT_USE_SNTP_NOT_AUTO
 
 // #define LUAT_USE_FTP
+// #define LUAT_USE_W5500 1
 
 
 //----------------------------
@@ -178,6 +176,16 @@
 //<-- custom
 //------------------------------------------------------------------------------
 
+#ifdef LUAT_USE_W5500
+#define LUAT_USE_DHCP  1
+#endif
+
+#ifndef LUAT_USE_NETWORK
+#define LUAT_USE_NETWORK
+#define LUAT_USE_LWIP
+#define LUAT_USE_DNS
+#endif
+
 #define LUAT_RET int
 #define LUAT_RT_RET_TYPE	void
 #define LUAT_RT_CB_PARAM void *param