Lines Matching full:base
30 SNVS_Type *base; member
64 tmp = (config->base->HPRTCMR << 17U); in mcux_snvs_get_value()
65 tmp |= (config->base->HPRTCLR >> 15U); in mcux_snvs_get_value()
100 config->base->HPCR &= ~SNVS_HPCR_HPTA_EN_MASK; in mcux_snvs_set_alarm()
101 while ((config->base->HPCR & SNVS_HPCR_HPTA_EN_MASK) != 0U) { 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()
109 config->base->HPCR |= SNVS_HPCR_HPTA_EN_MASK; in mcux_snvs_set_alarm()
119 config->base->LPCR &= ~SNVS_LPCR_LPTA_EN_MASK; in mcux_snvs_set_alarm()
120 while ((config->base->LPCR & SNVS_LPCR_LPTA_EN_MASK) != 0U) { in mcux_snvs_set_alarm()
124 config->base->LPTAR = ticks; in mcux_snvs_set_alarm()
127 config->base->LPCR |= SNVS_LPCR_LPTA_EN_MASK; in mcux_snvs_set_alarm()
145 config->base->HPCR &= ~SNVS_HPCR_HPTA_EN_MASK; in mcux_snvs_cancel_alarm()
146 while ((config->base->HPCR & SNVS_HPCR_HPTA_EN_MASK) != 0U) { in mcux_snvs_cancel_alarm()
155 config->base->LPCR &= ~SNVS_LPCR_LPTA_EN_MASK; in mcux_snvs_cancel_alarm()
156 while ((config->base->LPCR & SNVS_LPCR_LPTA_EN_MASK) != 0U) { in mcux_snvs_cancel_alarm()
184 flags = SNVS_HP_RTC_GetStatusFlags(config->base) & kSNVS_RTC_AlarmInterruptFlag; in mcux_snvs_get_pending_int()
187 flags |= SNVS_LP_SRTC_GetStatusFlags(config->base) & kSNVS_SRTC_AlarmInterruptFlag; in mcux_snvs_get_pending_int()
209 if (SNVS_HP_RTC_GetStatusFlags(config->base) & kSNVS_RTC_AlarmInterruptFlag) { in mcux_snvs_isr()
211 SNVS_HP_RTC_ClearStatusFlags(config->base, kSNVS_RTC_AlarmInterruptFlag); in mcux_snvs_isr()
221 if (SNVS_LP_SRTC_GetStatusFlags(config->base) & kSNVS_SRTC_AlarmInterruptFlag) { in mcux_snvs_isr()
223 SNVS_LP_SRTC_ClearStatusFlags(config->base, kSNVS_SRTC_AlarmInterruptFlag); in mcux_snvs_isr()
239 SNVS_LP_SRTC_StopTimer(config->base); in mcux_snvs_rtc_set()
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()
244 SNVS_LP_SRTC_StartTimer(config->base); in mcux_snvs_rtc_set()
246 SNVS_HP_RTC_TimeSynchronize(config->base); in mcux_snvs_rtc_set()
248 SNVS_HP_RTC_StopTimer(config->base); 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()
253 SNVS_HP_RTC_StartTimer(config->base); in mcux_snvs_rtc_set()
270 SNVS_HP_RTC_Init(config->base, &hp_rtc_config); in mcux_snvs_init()
274 SNVS_LP_Init(config->base); in mcux_snvs_init()
277 SNVS_LP_SRTC_Init(config->base, &lp_srtc_config); in mcux_snvs_init()
280 config->base->LPCR |= SNVS_LPCR_LPWUI_EN_MASK; in mcux_snvs_init()
284 SNVS_LP_SRTC_StartTimer(config->base); in mcux_snvs_init()
285 SNVS_HP_RTC_TimeSynchronize(config->base); in mcux_snvs_init()
289 SNVS_HP_RTC_StartTimer(config->base); in mcux_snvs_init()
326 .base = (SNVS_Type *)DT_REG_ADDR(DT_INST_PARENT(0)),