Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/rtc/
Drtc_smartbond.c359 uint32_t rtc_alarm_enable_reg = 0; in tm_to_rtc_alarm_mask() local
362 rtc_alarm_enable_reg |= RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_SEC_EN_Msk; in tm_to_rtc_alarm_mask()
365 rtc_alarm_enable_reg |= RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_MIN_EN_Msk; in tm_to_rtc_alarm_mask()
368 rtc_alarm_enable_reg |= RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_HOUR_EN_Msk; in tm_to_rtc_alarm_mask()
371 rtc_alarm_enable_reg |= RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_MNTH_EN_Msk; in tm_to_rtc_alarm_mask()
374 rtc_alarm_enable_reg |= RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_DATE_EN_Msk; in tm_to_rtc_alarm_mask()
377 return rtc_alarm_enable_reg; in tm_to_rtc_alarm_mask()
380 static uint16_t rtc_to_tm_alarm_mask(uint32_t rtc_alarm_enable_reg) in rtc_to_tm_alarm_mask() argument
384 if (rtc_alarm_enable_reg & RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_SEC_EN_Msk) { in rtc_to_tm_alarm_mask()
387 if (rtc_alarm_enable_reg & RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_MIN_EN_Msk) { in rtc_to_tm_alarm_mask()
[all …]