Searched refs:TM_YEAR_REF (Results 1 – 5 of 5) sorted by relevance
26 #define TM_YEAR_REF 1900 macro104 if (timeptr->tm_year + TM_YEAR_REF > RP2040_RTC_YEAR_MAX) { in rtc_rpi_pico_set_time()115 .year = timeptr->tm_year + TM_YEAR_REF, in rtc_rpi_pico_set_time()148 timeptr->tm_year = dt.year - TM_YEAR_REF; in rtc_rpi_pico_get_time()210 ((alarm->tm_year + TM_YEAR_REF) << RTC_IRQ_SETUP_0_YEAR_LSB)); in rtc_rpi_pico_alarm_set_time()
26 #define TM_YEAR_REF 1900U macro64 uint32_t real_year = timeptr->tm_year + TM_YEAR_REF; in rtc_numaker_set_time()113 timeptr->tm_year = curr_time.year - TM_YEAR_REF; in rtc_numaker_get_time()235 alarm_time.year = timeptr->tm_year + TM_YEAR_REF; in rtc_numaker_alarm_set_time()304 timeptr->tm_year = alarm_time.year - TM_YEAR_REF; in rtc_numaker_alarm_get_time()
31 #define TM_YEAR_REF 1900 macro172 bin2bcd((timeptr->tm_year + TM_YEAR_REF) % 100)); /*[year - 1900]*/ in rtc_calendar_to_bcd()174 bin2bcd((timeptr->tm_year + TM_YEAR_REF) / 100)); in rtc_calendar_to_bcd()203 (bcd2bin(RTC_CALENDAR_REG_GET_FIELD(C, rtc_calendar_reg)) * 100) - TM_YEAR_REF; in bcd_to_rtc_calendar()220 if (timeptr->tm_year + TM_YEAR_REF < TM_YEAR_REF) { in rtc_smartbond_set_time()
25 #define TM_YEAR_REF 1900 macro118 if (timeptr->tm_year + TM_YEAR_REF > AMBIQ_RTC_YEAR_MAX) { in ambiq_rtc_set_time()
53 #define TM_YEAR_REF 1900 macro407 uint32_t real_year = timeptr->tm_year + TM_YEAR_REF; in rtc_stm32_set_time()525 timeptr->tm_year = bcd2bin(__LL_RTC_GET_YEAR(rtc_date)) + (RTC_YEAR_REF - TM_YEAR_REF); in rtc_stm32_get_time()