Searched refs:bcd_decode (Results 1 – 1 of 1) sorted by relevance
87 static uint8_t bcd_decode(uint8_t dcb_val) in bcd_decode() function120 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()
Completed in 3 milliseconds