فهرست منبع

add: 支持errDump库

Wendal Chen 2 سال پیش
والد
کامیت
a58cb81691
3فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 3 0
      app/port/luat_base_air101.c
  2. 1 0
      app/port/luat_conf_bsp.h
  3. 4 4
      xmake.lua

+ 3 - 0
app/port/luat_base_air101.c

@@ -229,6 +229,9 @@ static const luaL_Reg loadedlibs[] = {
 #ifdef LUAT_USE_WLAN
   {"wlan", luaopen_wlan},
 #endif
+#ifdef LUAT_USE_ERRDUMP
+  {"errDump", luaopen_errdump},
+#endif
 #ifdef LUAT_USE_PROFILER
   {"profiler", luaopen_profiler},
 #endif

+ 1 - 0
app/port/luat_conf_bsp.h

@@ -62,6 +62,7 @@
 // #define LUAT_USE_SNTP
 // #define LUAT_USE_HTTPSRV
 // #define LUAT_USE_FTP
+#define LUAT_USE_ERRDUMP 1
 
 
 #define LUAT_USE_IOTAUTH 1

+ 4 - 4
xmake.lua

@@ -375,13 +375,13 @@ target("network")
     add_includedirs(luatos.."components/network/libemqtt",{public = true})
     add_files(luatos.."components/network/libemqtt/*.c")
 
-    -- mqtt
+    -- ymodem
     add_includedirs(luatos.."components/ymodem",{public = true})
     add_files(luatos.."components/ymodem/*.c")
 
     -- errdump
-    -- add_includedirs(luatos.."components/network/errdump",{public = true})
-    -- add_files(luatos.."components/network/errdump/*.c")
+    add_includedirs(luatos.."components/network/errdump",{public = true})
+    add_files(luatos.."components/network/errdump/*.c")
 target_end()
 
 target("nes")
@@ -626,7 +626,7 @@ target("air10x")
     add_files(luatos.."components/mempool/profiler/**.c")
     add_includedirs(luatos.."components/mempool/profiler/include")
 
-    -- profiler
+    -- repl
     add_files(luatos.."components/repl/**.c")
     add_includedirs(luatos.."components/repl/")