Home
last modified time | relevance | path

Searched refs:year (Results 1 – 3 of 3) sorted by relevance

/hal_rpi_pico-latest/src/rp2_common/hardware_rtc/
Drtc.c44 if (!(t->year >= 0 && t->year <= 4095)) return false; in valid_datetime()
67 rtc_hw->setup_0 = (((uint32_t)t->year) << RTC_SETUP_0_YEAR_LSB ) | in rtc_set_datetime()
101 t->year = (int16_t) ((rtc_1 & RTC_RTC_1_YEAR_BITS ) >> RTC_RTC_1_YEAR_LSB); in rtc_get_datetime()
136 if (t->year < 0) return true; in rtc_alarm_repeats()
150 … rtc_hw->irq_setup_0 = ((t->year < 0) ? 0 : (((uint32_t)t->year) << RTC_IRQ_SETUP_0_YEAR_LSB )) | in rtc_set_alarm()
159 if (t->year >= 0) hw_set_bits(&rtc_hw->irq_setup_0, RTC_IRQ_SETUP_0_YEAR_ENA_BITS); in rtc_set_alarm()
/hal_rpi_pico-latest/src/common/pico_util/
Ddatetime.c56 t->year); in datetime_to_str()
60 tm->tm_year = dt->year - 1900; in datetime_to_tm()
69 dt->year = (int16_t) (tm->tm_year + 1900); // 0..4095 in tm_to_datetime()
/hal_rpi_pico-latest/src/common/pico_base_headers/include/pico/
Dtypes.h108 int16_t year; ///< 0..4095 member