فهرست منبع

add:添加max30102

Dozingfiretruck 2 سال پیش
والد
کامیت
a004322967
3فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 2 0
      luatos/components/luat/CMakeLists.txt
  2. 3 0
      luatos/components/luat/port/luat_base_idf5.c
  3. 1 0
      luatos/include/luat_conf_bsp.h

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

@@ -80,7 +80,9 @@ idf_component_register(SRC_DIRS ${LUATOS_ROOT}/luat/modules
                                 ${LUATOS_ROOT}/components/sfd
                                 ${LUATOS_ROOT}/components/romfs
                                 ${LUATOS_ROOT}/components/fatfs
+                                ${LUATOS_ROOT}/components/max30102
                                 INCLUDE_DIRS ../../include
+                                ${LUATOS_ROOT}/components/max30102
                                 ${LUATOS_ROOT}/lua/include
                                 ${LUATOS_ROOT}/luat/include
                                 ${LUATOS_ROOT}/components/shell

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

@@ -230,6 +230,9 @@ static const luaL_Reg loadedlibs[] = {
 #endif
 #ifdef LUAT_USE_FATFS
   {"fatfs", luaopen_fatfs},
+#endif
+#ifdef LUAT_USE_MAX30102
+  {"max30102", luaopen_max30102},
 #endif
   {NULL, NULL}
 };

+ 1 - 0
luatos/include/luat_conf_bsp.h

@@ -88,6 +88,7 @@
 // #define LUAT_USE_OTA 1
 // #define LUAT_USE_I2CTOOLS 1
 // #define LUAT_USE_LORA 1
+// #define LUAT_USE_MAX30102 1
 // #define LUAT_USE_MLX90640 1
 // zlib压缩,更快更小的实现
 // #define LUAT_USE_MINIZ 1