Sfoglia il codice sorgente

add:补全宏定义

Dozingfiretruck 3 anni fa
parent
commit
7c262896af

+ 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}
 };