Wendal Chen 4 лет назад
Родитель
Сommit
f024a4b6b4
3 измененных файлов с 12 добавлено и 1 удалено
  1. 6 0
      bsp/air302/Makefile.inc
  2. 2 0
      bsp/air302/include/luat_conf_bsp.h
  3. 4 1
      bsp/air302/src/luat_air302_base.c

+ 6 - 0
bsp/air302/Makefile.inc

@@ -11,6 +11,9 @@ CFLAGS_INC    +=  -I $(LUATOS_DIR)/bsp/air302/include \
 				  -I $(LUATOS_DIR)/luat/packages/fatfs \
 				  -I $(LUATOS_DIR)/luat/packages/lfs \
 				  -I $(LUATOS_DIR)/components/lcd \
+				  -I $(LUATOS_DIR)/components/fal/inc \
+				  -I $(LUATOS_DIR)/components/flashdb/inc \
+				  -I $(LUATOS_DIR)/components/sfd \
 
 
 
@@ -28,6 +31,9 @@ LUATOS_SRC_DIRS += $(LUATOS_DIR)/lua/src \
 				    $(LUATOS_DIR)/luat/packages/fatfs \
 				    $(LUATOS_DIR)/luat/packages/lfs \
 					$(LUATOS_DIR)/components/lcd \
+				    $(LUATOS_DIR)/components/fal/src \
+				    $(LUATOS_DIR)/components/flashdb/src \
+				    $(LUATOS_DIR)/components/sfd \
 					$(LUATOS_DIR)/bsp/air302/src 
 
 

+ 2 - 0
bsp/air302/include/luat_conf_bsp.h

@@ -23,4 +23,6 @@
 
 #define LUAT_MEMORY_OPT_G_FUNCS 1
 
+#define LUAT_USE_FDB 1
+
 #endif

+ 4 - 1
bsp/air302/src/luat_air302_base.c

@@ -56,8 +56,11 @@ static const luaL_Reg loadedlibs[] = {
   {"lpmem",   luaopen_lpmem},             // 低功耗时仍工作的内存块
   {"nbiot",   luaopen_nbiot},             // NBIOT专属模块
   {"pm",      luaopen_pm},                // 低功耗模式
-  {"http",  luaopen_http},              // http库
+  {"http",    luaopen_http},              // http库
   // {"ctiot",	luaopen_ctiot},				      // ctiot库,中国电信ctwing平台
+#ifdef LUAT_USE_FDB
+  {"fdb",     luaopen_fdb},              // kv数据库
+#endif
   {NULL, NULL}
 };