Searched refs:rtc_write (Results 1 – 1 of 1) sorted by relevance
/Zephyr-Core-3.7.0/drivers/rtc/ |
D | rtc_mc146818.c | 140 static void rtc_write(int reg, uint8_t value) in rtc_write() function 194 rtc_write(RTC_DATA, value | RTC_UCI_BIT); in rtc_mc146818_set_time() 199 rtc_write(RTC_SEC, (uint8_t)timeptr->tm_sec); in rtc_mc146818_set_time() 200 rtc_write(RTC_MIN, (uint8_t)timeptr->tm_min); in rtc_mc146818_set_time() 201 rtc_write(RTC_HOUR, (uint8_t)timeptr->tm_hour); in rtc_mc146818_set_time() 202 rtc_write(RTC_WDAY, (uint8_t)timeptr->tm_wday); in rtc_mc146818_set_time() 203 rtc_write(RTC_MDAY, (uint8_t)timeptr->tm_mday); in rtc_mc146818_set_time() 204 rtc_write(RTC_MONTH, (uint8_t)timeptr->tm_mon + 1); in rtc_mc146818_set_time() 205 rtc_write(RTC_YEAR, year); in rtc_mc146818_set_time() 206 rtc_write(RTC_CENTURY, cent); in rtc_mc146818_set_time() [all …]
|