Lines Matching refs:hwtimer_cfg

105     struct swm_hwtimer_cfg *hwtimer_cfg;  member
157 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_configure() local
162 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_configure()
163 TIMR_Init(hwtimer_cfg->TIMRx, TIMR_MODE_TIMER, SystemCoreClock, 1); in swm_timer_configure()
171 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_start() local
173 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_start()
184 TIMR_SetPeriod(hwtimer_cfg->TIMRx, cnt); in swm_timer_start()
185 TIMR_Stop(hwtimer_cfg->TIMRx); in swm_timer_start()
186 TIMR_Start(hwtimer_cfg->TIMRx); in swm_timer_start()
193 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_stop() local
195 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_stop()
198 TIMR_Stop(hwtimer_cfg->TIMRx); in swm_timer_stop()
203 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_count_get() local
205 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_count_get()
207 return TIMR_GetCurValue(hwtimer_cfg->TIMRx); in swm_timer_count_get()
212 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_control() local
216 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_control()
225 TIMR_Init(hwtimer_cfg->TIMRx, TIMR_MODE_TIMER, SystemCoreClock / freq, 1); in swm_timer_control()
250 struct swm_hwtimer_cfg *hwtimer_cfg = RT_NULL; in swm_timer_isr() local
252 hwtimer_cfg = timer_device->parent.user_data; in swm_timer_isr()
254 TIMR_INTClr(hwtimer_cfg->TIMRx); in swm_timer_isr()
331 hwtimer_obj[i].hwtimer_cfg = &swm_hwtimer_cfg[i]; in swm_timer_init()
334 …_register(&hwtimer_obj[i].time_device, hwtimer_obj[i].hwtimer_cfg->name, hwtimer_obj[i].hwtimer_cf… in swm_timer_init()
337 LOG_E("%s register fail.", hwtimer_obj[i].hwtimer_cfg->name); in swm_timer_init()
341 LOG_D("%s register success.", hwtimer_obj[i].hwtimer_cfg->name); in swm_timer_init()