Lines Matching refs:hwtimer_cfg
217 struct swm_hwtimer_cfg *hwtimer_cfg; member
335 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_configure() local
340 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_configure()
341 TIMR_Init(hwtimer_cfg->TIMRx, TIMR_MODE_TIMER, CyclesPerUs, 1000000, 1); in swm_timer_configure()
349 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_start() local
351 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_start()
362 hwtimer_cfg->TIMRx->LOAD = cnt - 1; in swm_timer_start()
363 TIMR_Stop(hwtimer_cfg->TIMRx); in swm_timer_start()
364 TIMR_Start(hwtimer_cfg->TIMRx); in swm_timer_start()
371 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_stop() local
373 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_stop()
376 TIMR_Stop(hwtimer_cfg->TIMRx); in swm_timer_stop()
381 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_count_get() local
383 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_count_get()
385 return TIMR_GetCurValue(hwtimer_cfg->TIMRx); in swm_timer_count_get()
390 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_control() local
394 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_control()
403 TIMR_Init(hwtimer_cfg->TIMRx, TIMR_MODE_TIMER, CyclesPerUs, freq, 1); in swm_timer_control()
428 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_isr() local
430 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_isr()
432 TIMR_INTClr(hwtimer_cfg->TIMRx); in swm_timer_isr()
596 hwtimer_obj[i].hwtimer_cfg = &swm_hwtimer_cfg[i]; in swm_timer_init()
599 …_register(&hwtimer_obj[i].time_device, hwtimer_obj[i].hwtimer_cfg->name, hwtimer_obj[i].hwtimer_cf… in swm_timer_init()
602 LOG_E("%s register fail.", hwtimer_obj[i].hwtimer_cfg->name); in swm_timer_init()
606 LOG_D("%s register success.", hwtimer_obj[i].hwtimer_cfg->name); in swm_timer_init()