Lines Matching refs:ticks
57 static int mcux_snvs_get_value(const struct device *dev, uint32_t *ticks) in mcux_snvs_get_value() argument
63 *ticks = tmp; in mcux_snvs_get_value()
66 } while (*ticks != tmp); in mcux_snvs_get_value()
78 uint32_t current, ticks; in mcux_snvs_set_alarm() local
81 ticks = alarm_cfg->ticks; in mcux_snvs_set_alarm()
84 ticks += current; in mcux_snvs_set_alarm()
87 if (ticks < current) { in mcux_snvs_set_alarm()
105 config->base->HPTAMR = (uint32_t)(ticks >> 17U); in mcux_snvs_set_alarm()
106 config->base->HPTALR = (uint32_t)(ticks << 15U); in mcux_snvs_set_alarm()
124 config->base->LPTAR = ticks; in mcux_snvs_set_alarm()
234 int mcux_snvs_rtc_set(const struct device *dev, uint32_t ticks) in mcux_snvs_rtc_set() argument
241 config->base->LPSRTCMR = (uint32_t)(ticks >> 17U); in mcux_snvs_rtc_set()
242 config->base->LPSRTCLR = (uint32_t)(ticks << 15U); in mcux_snvs_rtc_set()
250 config->base->HPRTCMR = (uint32_t)(ticks >> 17U); in mcux_snvs_rtc_set()
251 config->base->HPRTCLR = (uint32_t)(ticks << 15U); in mcux_snvs_rtc_set()