Browse Source

add: 关联编译ir库

Wendal Chen 4 years ago
parent
commit
d8d6422e2f
2 changed files with 8 additions and 2 deletions
  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
 #ifdef LUAT_USE_ZLIB
   {"zlib", luaopen_zlib},
   {"zlib", luaopen_zlib},
 #endif
 #endif
-  // {"mlx90640", luaopen_mlx90640},
+#ifdef LUAT_USE_MLX90640
+  {"mlx90640", luaopen_mlx90640},
+#endif
+#ifdef LUAT_USE_IR
+  {"ir", luaopen_ir},
+#endif
   {NULL, NULL}
   {NULL, NULL}
 };
 };
 
 

+ 2 - 1
app/port/luat_conf_bsp.h

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