Home
last modified time | relevance | path

Searched refs:hwtimer_device4 (Results 1 – 4 of 4) sorted by relevance

/bsp/wch/arm/Libraries/ch32_drivers/
A Ddrv_hwtimer_ch32f10x.c53 struct hwtimer_device hwtimer_device4 = variable
286 hwtimer_info = ch32f1_hwtimer_info_config_get(hwtimer_device4.periph); in rt_hw_hwtimer_init()
287 hwtimer_device4.parent.info = hwtimer_info; in rt_hw_hwtimer_init()
288 hwtimer_device4.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init()
289 ret = rt_device_hwtimer_register(&hwtimer_device4.parent, hwtimer_device4.name, RT_NULL); in rt_hw_hwtimer_init()
292 LOG_D("hwtimer: %s register success.", hwtimer_device4.name); in rt_hw_hwtimer_init()
296 LOG_D("hwtimer: %s register failed.", hwtimer_device4.name); in rt_hw_hwtimer_init()
358 if (TIM_GetITStatus(hwtimer_device4.periph, TIM_IT_Update) == SET) in TIM4_IRQHandler()
360 TIM_ClearITPendingBit(hwtimer_device4.periph, TIM_IT_Update); in TIM4_IRQHandler()
361 rt_device_hwtimer_isr(&hwtimer_device4.parent); in TIM4_IRQHandler()
A Ddrv_hwtimer_ch32f20x.c53 struct hwtimer_device hwtimer_device4 = variable
334 hwtimer_info = ch32f2_hwtimer_info_config_get(hwtimer_device4.periph); in rt_hw_hwtimer_init()
335 hwtimer_device4.parent.info = hwtimer_info; in rt_hw_hwtimer_init()
336 hwtimer_device4.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init()
337 ret = rt_device_hwtimer_register(&hwtimer_device4.parent, hwtimer_device4.name, RT_NULL); in rt_hw_hwtimer_init()
340 LOG_D("hwtimer: %s register success.", hwtimer_device4.name); in rt_hw_hwtimer_init()
344 LOG_D("hwtimer: %s register failed.", hwtimer_device4.name); in rt_hw_hwtimer_init()
496 if (TIM_GetITStatus(hwtimer_device4.periph, TIM_IT_Update) == SET) in TIM4_IRQHandler()
498 TIM_ClearITPendingBit(hwtimer_device4.periph, TIM_IT_Update); in TIM4_IRQHandler()
499 rt_device_hwtimer_isr(&hwtimer_device4.parent); in TIM4_IRQHandler()
/bsp/airm2m/air32f103/libraries/rt_drivers/
A Ddrv_hwtimer.c247 hwtimer_info = air32_hwtimer_info_config_get(hwtimer_device4.periph); in rt_hw_hwtimer_init()
248 hwtimer_device4.parent.info = hwtimer_info; in rt_hw_hwtimer_init()
249 hwtimer_device4.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init()
250 ret = rt_device_hwtimer_register(&hwtimer_device4.parent, hwtimer_device4.name, RT_NULL); in rt_hw_hwtimer_init()
253 LOG_D("hwtimer: %s register success.", hwtimer_device4.name); in rt_hw_hwtimer_init()
257 LOG_D("hwtimer: %s register failed.", hwtimer_device4.name); in rt_hw_hwtimer_init()
319 if (TIM_GetITStatus(hwtimer_device4.periph, TIM_IT_Update) == SET) in TIM4_IRQHandler()
321 TIM_ClearITPendingBit(hwtimer_device4.periph, TIM_IT_Update); in TIM4_IRQHandler()
322 rt_device_hwtimer_isr(&hwtimer_device4.parent); in TIM4_IRQHandler()
A Ddrv_hwtimer.h52 struct hwtimer_device hwtimer_device4 = variable

Completed in 6 milliseconds