Searched refs:RTC_SAM_REG_GET_FIELD (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/rtc/ |
D | rtc_sam.c | 19 #define RTC_SAM_REG_GET_FIELD(value, field) \ macro 167 timeptr->tm_sec = bcd2bin(RTC_SAM_REG_GET_FIELD(timr0, TIMR_SEC)); in rtc_sam_get_time() 168 timeptr->tm_min = bcd2bin(RTC_SAM_REG_GET_FIELD(timr0, TIMR_MIN)); in rtc_sam_get_time() 169 timeptr->tm_hour = bcd2bin(RTC_SAM_REG_GET_FIELD(timr0, TIMR_HOUR)); 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() 307 timeptr->tm_sec = bcd2bin(RTC_SAM_REG_GET_FIELD(timalr, TIMALR_SEC)); in rtc_sam_tm_from_timalr_calalr() [all …]
|