api_rtc.h 427 B

1234567891011121314151617
  1. #ifndef _API_RTC_H
  2. #define _API_RTC_H
  3. void irtc_sfr_write(u32 cmd, u8 dat);
  4. u8 irtc_sfr_read(u32 cmd);
  5. u32 irtc_time_read(u32 cmd);
  6. void irtc_time_write(u32 cmd, u32 dat);
  7. void rtcram_write(u8 *buf, u8 addr, u8 cnt);
  8. void rtcram_read(u8 *buf, u8 addr, u8 cnt);
  9. void rtc_time_to_tm(unsigned long time, void *param);
  10. unsigned long rtc_tm_to_time(void *param);
  11. u8 get_weekday(u8 year, u8 month, u8 day);
  12. #endif // _API_RTC_H