Lines Matching full:alarm
69 /* re-enable the alarm. */ in rtc_rpi_isr()
177 const struct rtc_time *alarm) in rtc_rpi_pico_alarm_set_time() argument
189 if (!rtc_utils_validate_rtc_time(alarm, mask)) { in rtc_rpi_pico_alarm_set_time()
193 LOG_INF("Setting alarm"); in rtc_rpi_pico_alarm_set_time()
197 /* Disable the alarm */ in rtc_rpi_pico_alarm_set_time()
210 ((alarm->tm_year + TM_YEAR_REF) << RTC_IRQ_SETUP_0_YEAR_LSB)); in rtc_rpi_pico_alarm_set_time()
215 (alarm->tm_mon << RTC_IRQ_SETUP_0_MONTH_LSB)); in rtc_rpi_pico_alarm_set_time()
220 ((alarm->tm_mday + 1) << RTC_IRQ_SETUP_0_DAY_LSB)); in rtc_rpi_pico_alarm_set_time()
225 (alarm->tm_wday << RTC_IRQ_SETUP_1_DOTW_LSB)); in rtc_rpi_pico_alarm_set_time()
230 (alarm->tm_hour << RTC_IRQ_SETUP_1_HOUR_LSB)); in rtc_rpi_pico_alarm_set_time()
235 (alarm->tm_min << RTC_IRQ_SETUP_1_MIN_LSB)); in rtc_rpi_pico_alarm_set_time()
240 (alarm->tm_sec << RTC_IRQ_SETUP_1_SEC_LSB)); in rtc_rpi_pico_alarm_set_time()
242 data->alarm_time = *alarm; in rtc_rpi_pico_alarm_set_time()