Home
last modified time | relevance | path

Searched refs:calr0 (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/rtc/
Drtc_sam.c146 uint32_t calr0; in rtc_sam_get_time() local
158 calr0 = regs->RTC_CALR; in rtc_sam_get_time()
162 if ((timr0 == timr1) && (calr0 == calr1)) { in rtc_sam_get_time()
170 timeptr->tm_mday = bcd2bin(RTC_SAM_REG_GET_FIELD(calr0, CALR_DATE)); in rtc_sam_get_time()
171 timeptr->tm_mon = bcd2bin(RTC_SAM_REG_GET_FIELD(calr0, CALR_MONTH)) - 1; in rtc_sam_get_time()
173 timeptr->tm_year = bcd2bin(RTC_SAM_REG_GET_FIELD(calr0, CALR_YEAR)); in rtc_sam_get_time()
174 timeptr->tm_year += ((int)bcd2bin(RTC_SAM_REG_GET_FIELD(calr0, CALR_CENT))) * 100; in rtc_sam_get_time()
177 timeptr->tm_wday = bcd2bin(RTC_SAM_REG_GET_FIELD(calr0, CALR_DAY)) - 1; in rtc_sam_get_time()