فهرست منبع

add: 关联编译ir库

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

+ 6 - 1
app/port/luat_base_air101.c

@@ -174,7 +174,12 @@ static const luaL_Reg loadedlibs[] = {
 #ifdef LUAT_USE_ZLIB
   {"zlib", luaopen_zlib},
 #endif
-  // {"mlx90640", luaopen_mlx90640},
+#ifdef LUAT_USE_MLX90640
+  {"mlx90640", luaopen_mlx90640},
+#endif
+#ifdef LUAT_USE_IR
+  {"ir", luaopen_ir},
+#endif
   {NULL, NULL}
 };
 

+ 2 - 1
app/port/luat_conf_bsp.h

@@ -55,7 +55,8 @@
 // #define LUAT_USE_STATEM 1
 // 性能测试,跑完就是玩,不要与lvgl一起启用,生产环境的固件别加这个库
 // #define LUAT_USE_COREMARK 1
-// #define LUAT_USE_ZLIB 
+// #define LUAT_USE_ZLIB 1 
+// #define LUAT_USE_IR 1
 
 //---------------SDIO-FATFS特别配置
 // sdio库对接的是fatfs