Lines Matching refs:base
25 RTC_Type *base; member
43 uint32_t current = RTC_GetSecondsTimerCount(config->base); in mcux_lpc_rtc_isr()
47 if ((RTC_GetStatusFlags(config->base) & RTC_CTRL_ALARM1HZ_MASK) && in mcux_lpc_rtc_isr()
64 if (RTC_GetStatusFlags(config->base) & RTC_CTRL_ALARM1HZ_MASK) { in mcux_lpc_rtc_isr()
65 RTC_ClearStatusFlags(config->base, kRTC_AlarmFlag); in mcux_lpc_rtc_isr()
69 if (RTC_GetStatusFlags(config->base) & RTC_CTRL_WAKE1KHZ_MASK) { in mcux_lpc_rtc_isr()
70 RTC_ClearStatusFlags(config->base, kRTC_WakeupFlag); in mcux_lpc_rtc_isr()
72 if (config->base->CTRL & RTC_CTRL_RTC1KHZ_EN_MASK) { in mcux_lpc_rtc_isr()
89 RTC_EnableTimer(config->base, true); in mcux_lpc_rtc_start()
100 RTC_EnableTimer(config->base, false); in mcux_lpc_rtc_stop()
103 RTC_SetSecondsTimerMatch(config->base, 0); in mcux_lpc_rtc_stop()
114 uint32_t ticks = RTC_GetSecondsTimerCount(config->base); in mcux_lpc_rtc_read()
159 RTC_SetSecondsTimerMatch(config->base, ticks); in mcux_lpc_rtc_set_alarm()
191 return RTC_GetStatusFlags(config->base) & RTC_CTRL_ALARM1HZ_MASK; in mcux_lpc_rtc_get_pending_int()
207 RTC_Init(config->base); in mcux_lpc_rtc_init()
210 RTC_Reset(config->base); in mcux_lpc_rtc_init()
216 RTC_EnableAlarmTimerInterruptFromDPD(config->base, true); in mcux_lpc_rtc_init()
236 .base = (RTC_Type *)DT_INST_REG_ADDR(id), \
280 if ((config->base->CTRL & RTC_CTRL_RTC_EN_MASK) == 0) { in DT_INST_FOREACH_STATUS_OKAY()
288 if ((config->base->CTRL & RTC_CTRL_RTC_EN_MASK) == 0) { in DT_INST_FOREACH_STATUS_OKAY()
289 RTC_EnableTimer(config->base, true); in DT_INST_FOREACH_STATUS_OKAY()
295 RTC_SetWakeupCount(config->base, counter_get_top_value(dev)); in DT_INST_FOREACH_STATUS_OKAY()
297 RTC_SetWakeupCount(config->base, data->value); in DT_INST_FOREACH_STATUS_OKAY()
309 config->base->CTRL &= ~RTC_CTRL_RTC1KHZ_EN_MASK; in mcux_lpc_rtc_highres_stop()
313 RTC_EnableTimer(config->base, false); in mcux_lpc_rtc_highres_stop()
325 uint32_t ticks = RTC_GetWakeupCount(config->base); in mcux_lpc_rtc_highres_read()
364 if (config->base->CTRL & RTC_CTRL_RTC1KHZ_EN_MASK) { in mcux_lpc_rtc_highres_set_top_value()
377 return RTC_GetStatusFlags(config->base) & RTC_CTRL_WAKE1KHZ_MASK; in mcux_lpc_rtc_highres_get_pending_int()
400 RTC_Init(config->base); in mcux_lpc_rtc_highres_init()
403 RTC_Reset(config->base); in mcux_lpc_rtc_highres_init()
410 RTC_EnableWakeUpTimerInterruptFromDPD(config->base, true); in mcux_lpc_rtc_highres_init()
442 .base = (RTC_Type *)DT_REG_ADDR(DT_INST_PARENT(id)), \