Searched refs:rtc_read (Results 1 – 1 of 1) sorted by relevance
130 static uint8_t rtc_read(int reg) in rtc_read() function193 value = rtc_read(RTC_DATA); in rtc_mc146818_set_time()232 if (!(rtc_read(RTC_REG_D) & RTC_VRT_BIT)) { in rtc_mc146818_get_time()237 while (rtc_read(RTC_UIP) & RTC_UIP_BIT) { in rtc_mc146818_get_time()241 cent = rtc_read(RTC_CENTURY); in rtc_mc146818_get_time()242 year = rtc_read(RTC_YEAR); in rtc_mc146818_get_time()243 timeptr->tm_mon = rtc_read(RTC_MONTH) - 1; in rtc_mc146818_get_time()244 timeptr->tm_mday = rtc_read(RTC_MDAY); in rtc_mc146818_get_time()245 timeptr->tm_wday = rtc_read(RTC_WDAY) - 1; in rtc_mc146818_get_time()246 timeptr->tm_hour = rtc_read(RTC_HOUR); in rtc_mc146818_get_time()[all …]