Переглянути джерело

fix: 修正几个编译警告

Wendal Chen 3 роки тому
батько
коміт
7b6359ba29

+ 1 - 0
app/port/luat_base_air101.c

@@ -8,6 +8,7 @@
 #include "wm_rtc.h"
 #include "wm_regs.h"
 #include "wm_cpu.h"
+#include "wm_irq.h"
 
 LUAMOD_API int luaopen_gtfont( lua_State *L );
 LUAMOD_API int luaopen_nimble( lua_State *L );

+ 1 - 0
app/port/luat_fs_air101.c

@@ -8,6 +8,7 @@
 #include "luat_timer.h"
 #include "stdio.h"
 #include "luat_ota.h"
+#include "wm_internal_flash.h"
 
 extern struct lfs_config lfs_cfg;
 extern lfs_t lfs;

+ 1 - 0
app/port/luat_i2s_air101.c

@@ -3,6 +3,7 @@
 
 #include "wm_include.h"
 #include "wm_i2s.h"
+#include "wm_gpio_afsel.h"
 
 #define LUAT_LOG_TAG "i2s"
 #include "luat_log.h"

+ 2 - 0
app/port/luat_rtc_air101.c

@@ -48,10 +48,12 @@ int luat_rtc_timer_start(int id, struct tm *tblock) {
     tblock->tm_mon--;
     tls_rtc_isr_register(luat_rtc_cb, NULL);
     tls_rtc_timer_start(tblock);
+    return 0;
 }
 
 int luat_rtc_timer_stop(int id) {
     if (id)
         return -1;
     tls_rtc_timer_stop();
+    return 0;
 }