Lines Matching refs:base

37 	CTIMER_Type *base;  member
50 CTIMER_StartTimer(config->base); in mcux_lpc_ctimer_start()
59 CTIMER_StopTimer(config->base); in mcux_lpc_ctimer_stop()
64 static uint32_t mcux_lpc_ctimer_read(CTIMER_Type *base) in mcux_lpc_ctimer_read() argument
66 return CTIMER_GetTimerCountValue(base); in mcux_lpc_ctimer_read()
72 *ticks = mcux_lpc_ctimer_read(config->base); in mcux_lpc_ctimer_get_value()
81 CTIMER_Type *base = config->base; in mcux_lpc_ctimer_get_top_value() local
84 if (base->MR[NUM_CHANNELS] != 0) { in mcux_lpc_ctimer_get_top_value()
85 return base->MR[NUM_CHANNELS]; in mcux_lpc_ctimer_get_top_value()
100 uint32_t current = mcux_lpc_ctimer_read(config->base); in mcux_lpc_ctimer_set_alarm()
129 CTIMER_SetupMatch(config->base, chan_id, &match_config); in mcux_lpc_ctimer_set_alarm()
139 CTIMER_DisableInterrupts(config->base, (1 << chan_id)); in mcux_lpc_ctimer_cancel_alarm()
166 CTIMER_Reset(config->base); in mcux_lpc_ctimer_set_top_value()
167 } else if (mcux_lpc_ctimer_read(config->base) >= cfg->ticks) { in mcux_lpc_ctimer_set_top_value()
169 CTIMER_Reset(config->base); in mcux_lpc_ctimer_set_top_value()
182 CTIMER_SetupMatch(config->base, NUM_CHANNELS, &match_config); in mcux_lpc_ctimer_set_top_value()
192 return (CTIMER_GetStatusFlags(config->base) & 0xF) != 0; in mcux_lpc_ctimer_get_pending_int()
223 uint32_t interrupt_stat = CTIMER_GetStatusFlags(config->base); in mcux_lpc_ctimer_isr()
225 CTIMER_ClearStatusFlags(config->base, interrupt_stat); in mcux_lpc_ctimer_isr()
227 uint32_t ticks = mcux_lpc_ctimer_read(config->base); in mcux_lpc_ctimer_isr()
273 CTIMER_Init(config->base, &ctimer_config); in mcux_lpc_ctimer_init()
300 .base = (CTIMER_Type *)DT_INST_REG_ADDR(id), \