Searched refs:calr (Results 1 – 2 of 2) sorted by relevance
109 uint32_t calr; in rtc_sam_calr_from_tm() local113 calr = RTC_CALR_DATE(bin2bcd(timeptr->tm_mday)); in rtc_sam_calr_from_tm()114 calr |= RTC_CALR_MONTH(bin2bcd(timeptr->tm_mon + 1)); in rtc_sam_calr_from_tm()117 calr |= RTC_CALR_CENT(bin2bcd(centuries)); in rtc_sam_calr_from_tm()118 calr |= RTC_CALR_YEAR(bin2bcd(years)); in rtc_sam_calr_from_tm()119 calr |= RTC_CALR_DAY(bin2bcd(timeptr->tm_wday + 1)); in rtc_sam_calr_from_tm()120 return calr; in rtc_sam_calr_from_tm()
376 uint32_t calr = sys_read32((mem_addr_t) &RTC->CALR); in rtc_stm32_get_calibration() local378 bool calp_enabled = READ_BIT(calr, RTC_CALR_CALP); in rtc_stm32_get_calibration()379 uint32_t calm = READ_BIT(calr, RTC_CALR_CALM); in rtc_stm32_get_calibration()