Searched refs:calr (Results 1 – 2 of 2) sorted by relevance
80 uint32_t calr; in rtc_sam_calr_from_tm() local84 calr = RTC_CALR_DATE(bin2bcd(timeptr->tm_mday)); in rtc_sam_calr_from_tm()85 calr |= RTC_CALR_MONTH(bin2bcd(timeptr->tm_mon + 1)); in rtc_sam_calr_from_tm()88 calr |= RTC_CALR_CENT(bin2bcd(centuries)); in rtc_sam_calr_from_tm()89 calr |= RTC_CALR_YEAR(bin2bcd(years)); in rtc_sam_calr_from_tm()90 calr |= RTC_CALR_DAY(bin2bcd(timeptr->tm_wday + 1)); in rtc_sam_calr_from_tm()91 return calr; in rtc_sam_calr_from_tm()
1024 uint32_t calr = sys_read32((mem_addr_t) &RTC->CALR); in rtc_stm32_get_calibration() local1026 bool calp_enabled = READ_BIT(calr, RTC_CALR_CALP); in rtc_stm32_get_calibration()1027 uint32_t calm = READ_BIT(calr, RTC_CALR_CALM); in rtc_stm32_get_calibration()