@@ -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 );
#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;
@@ -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"
@@ -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();