Lines Matching refs:hwtimer_dev

101     CTIMER_Type *hwtimer_dev;  in mcxa_ctimer_control()  local
102 hwtimer_dev = (CTIMER_Type *)timer->parent.user_data; in mcxa_ctimer_control()
112 if(hwtimer_dev == CTIMER0) clk = CLOCK_GetCTimerClkFreq(0U); in mcxa_ctimer_control()
113 if(hwtimer_dev == CTIMER1) clk = CLOCK_GetCTimerClkFreq(1U); in mcxa_ctimer_control()
114 if(hwtimer_dev == CTIMER2) clk = CLOCK_GetCTimerClkFreq(2U); in mcxa_ctimer_control()
118 hwtimer_dev->PR = pre; in mcxa_ctimer_control()
131 CTIMER_Type *hwtimer_dev; in mcxa_ctimer_count_get() local
132 hwtimer_dev = (CTIMER_Type *)timer->parent.user_data; in mcxa_ctimer_count_get()
136 CurrentTimer_Count = hwtimer_dev->TC; in mcxa_ctimer_count_get()
143 CTIMER_Type *hwtimer_dev; in mcxa_ctimer_init() local
145 hwtimer_dev = (CTIMER_Type *)timer->parent.user_data; in mcxa_ctimer_init()
150 if(hwtimer_dev == CTIMER0) CLOCK_AttachClk(kFRO_HF_to_CTIMER0); in mcxa_ctimer_init()
151 if(hwtimer_dev == CTIMER1) CLOCK_AttachClk(kFRO_HF_to_CTIMER1); in mcxa_ctimer_init()
152 if(hwtimer_dev == CTIMER2) CLOCK_AttachClk(kFRO_HF_to_CTIMER2); in mcxa_ctimer_init()
154 CTIMER_Init(hwtimer_dev, &cfg); in mcxa_ctimer_init()
160 CTIMER_Init(hwtimer_dev, &cfg); in mcxa_ctimer_init()
166 CTIMER_Type *hwtimer_dev; in mcxa_ctimer_start() local
167 hwtimer_dev = (CTIMER_Type *)timer->parent.user_data; in mcxa_ctimer_start()
181 CTIMER_SetupMatch(hwtimer_dev, kCTIMER_Match_1, &matchCfg); in mcxa_ctimer_start()
185 CTIMER_StartTimer(hwtimer_dev); in mcxa_ctimer_start()
192 CTIMER_Type *hwtimer_dev; in mcxa_ctimer_stop() local
193 hwtimer_dev = (CTIMER_Type *)timer->parent.user_data; in mcxa_ctimer_stop()
197 CTIMER_StopTimer(hwtimer_dev); in mcxa_ctimer_stop()