luat_rtc.h 328 B

1234567891011121314
  1. #ifndef LUAT_RTC_H
  2. #define LUAT_RTC_H
  3. #include "luat_base.h"
  4. #include "time.h"
  5. int luat_rtc_set(struct tm *tblock);
  6. int luat_rtc_get(struct tm *tblock);
  7. int luat_rtc_timer_start(int id, struct tm *tblock);
  8. int luat_rtc_timer_stop(int id);
  9. void luat_rtc_set_tamp32(uint32_t tamp);
  10. int luat_rtc_timezone(int* timezone);
  11. #endif