Browse Source

add: 关联编译ulwip库

Wendal Chen 1 năm trước cách đây
mục cha
commit
9388c28315

+ 1 - 0
luatos/components/luat/CMakeLists.txt

@@ -76,6 +76,7 @@ idf_component_register(SRC_DIRS ${LUATOS_ROOT}/luat/modules
                                 ${LUATOS_ROOT}/components/network/libhttp
                                 ${LUATOS_ROOT}/components/network/libemqtt
                                 ${LUATOS_ROOT}/components/network/libsntp
+                                ${LUATOS_ROOT}/components/network/ulwip/binding/
                                 ${LUATOS_ROOT}/components/ethernet/common
                                 ${LUATOS_ROOT}/components/ethernet/w5500
                                 ${LUATOS_ROOT}/components/common

+ 3 - 0
luatos/components/luat/port/luat_base_idf5.c

@@ -251,6 +251,9 @@ static const luaL_Reg loadedlibs[] = {
 #endif
 #ifdef LUAT_USE_XXTEA
   {"xxtea", luaopen_xxtea},
+#endif
+#ifdef LUAT_USE_ULWIP
+  {"ulwip", luaopen_ulwip},
 #endif
   {NULL, NULL}
 };

+ 1 - 0
luatos/include/luat_conf_bsp.h

@@ -38,6 +38,7 @@
 // #define LUAT_USE_NIMBLE 1
 
 #define LUAT_USE_IOTAUTH 1
+#define LUAT_USE_ULWIP 1
 
 //----------------------------
 // 常用工具库, 按需启用, cjson和pack是强烈推荐启用的