Explorar el Código

add:补全宏定义

Dozingfiretruck hace 3 años
padre
commit
7c262896af
Se han modificado 2 ficheros con 10 adiciones y 0 borrados
  1. 4 0
      application/include/luat_conf_bsp.h
  2. 6 0
      application/src/luat_base_air105.c

+ 4 - 0
application/include/luat_conf_bsp.h

@@ -69,6 +69,10 @@
 #define LUAT_USE_SOFTKB 1
 // #define LUAT_USE_PROTOBUF
 
+#define LUAT_USE_USB    1
+#define LUAT_USE_MEDIA    1
+#define LUAT_USE_IO_QUEUE    1
+
 #define LUAT_USE_W5500  1
 #define LUAT_USE_DHCP  1
 #define LUAT_USE_DNS  1

+ 6 - 0
application/src/luat_base_air105.c

@@ -233,10 +233,16 @@ static const luaL_Reg loadedlibs[] = {
 #ifdef LUAT_USE_RSA
   {"rsa", luaopen_rsa},
 #endif
+#ifdef LUAT_USE_USB
   {"usbapp", luaopen_usbapp},
+#endif
+#ifdef LUAT_USE_MEDIA
   {"audio", luaopen_multimedia_audio},
   {"codec", luaopen_multimedia_codec},
+#endif
+#ifdef LUAT_USE_IO_QUEUE
   {"ioqueue", luaopen_io_queue},
+#endif
   {NULL, NULL}
 };