Searched refs:RTC_VAL (Results 1 – 1 of 1) sorted by relevance
/optee_os-3.20.0/core/drivers/ |
A D | atmel_rtc.c | 17 #define RTC_VAL(reg, val) (((val) >> RTC_## reg ## _SHIFT) & \ macro 34 #define RTC_MR_CORR(val) RTC_VAL(val, MR_CORR) 120 tm->tm_wday = bcd_decode(RTC_VAL(CAL_DAY, date)) - 1; in atmel_decode_date() 121 tm->tm_mday = bcd_decode(RTC_VAL(CAL_DATE, date)); in atmel_decode_date() 122 tm->tm_mon = bcd_decode(RTC_VAL(CAL_MONTH, date)) - 1; in atmel_decode_date() 123 tm->tm_year = bcd_decode(RTC_VAL(CAL_CENT, date)) * 100; in atmel_decode_date() 124 tm->tm_year += bcd_decode(RTC_VAL(CAL_YEAR, date)); in atmel_decode_date() 126 tm->tm_hour = bcd_decode(RTC_VAL(TIME_HOUR, time)); in atmel_decode_date() 127 tm->tm_min = bcd_decode(RTC_VAL(TIME_MIN, time)); in atmel_decode_date() 128 tm->tm_sec = bcd_decode(RTC_VAL(TIME_SEC, time)); in atmel_decode_date() [all …]
|
Completed in 3 milliseconds