Searched refs:hwtimer_device2 (Results 1 – 4 of 4) sorted by relevance
| /bsp/wch/arm/Libraries/ch32_drivers/ |
| A D | drv_hwtimer_ch32f10x.c | 37 struct hwtimer_device hwtimer_device2 = variable 256 hwtimer_info = ch32f1_hwtimer_info_config_get(hwtimer_device2.periph); in rt_hw_hwtimer_init() 257 hwtimer_device2.parent.info = hwtimer_info; in rt_hw_hwtimer_init() 258 hwtimer_device2.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init() 259 ret = rt_device_hwtimer_register(&hwtimer_device2.parent, hwtimer_device2.name, RT_NULL); in rt_hw_hwtimer_init() 262 LOG_D("hwtimer: %s register success.", hwtimer_device2.name); in rt_hw_hwtimer_init() 266 LOG_D("hwtimer: %s register failed.", hwtimer_device2.name); in rt_hw_hwtimer_init() 326 if (TIM_GetITStatus(hwtimer_device2.periph, TIM_IT_Update) == SET) in TIM2_IRQHandler() 328 TIM_ClearITPendingBit(hwtimer_device2.periph, TIM_IT_Update); in TIM2_IRQHandler() 329 rt_device_hwtimer_isr(&hwtimer_device2.parent); in TIM2_IRQHandler()
|
| A D | drv_hwtimer_ch32f20x.c | 37 struct hwtimer_device hwtimer_device2 = variable 304 hwtimer_info = ch32f2_hwtimer_info_config_get(hwtimer_device2.periph); in rt_hw_hwtimer_init() 305 hwtimer_device2.parent.info = hwtimer_info; in rt_hw_hwtimer_init() 306 hwtimer_device2.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init() 307 ret = rt_device_hwtimer_register(&hwtimer_device2.parent, hwtimer_device2.name, RT_NULL); in rt_hw_hwtimer_init() 310 LOG_D("hwtimer: %s register success.", hwtimer_device2.name); in rt_hw_hwtimer_init() 314 LOG_D("hwtimer: %s register failed.", hwtimer_device2.name); in rt_hw_hwtimer_init() 464 if (TIM_GetITStatus(hwtimer_device2.periph, TIM_IT_Update) == SET) in TIM2_IRQHandler() 466 TIM_ClearITPendingBit(hwtimer_device2.periph, TIM_IT_Update); in TIM2_IRQHandler() 467 rt_device_hwtimer_isr(&hwtimer_device2.parent); in TIM2_IRQHandler()
|
| /bsp/airm2m/air32f103/libraries/rt_drivers/ |
| A D | drv_hwtimer.c | 217 hwtimer_info = air32_hwtimer_info_config_get(hwtimer_device2.periph); in rt_hw_hwtimer_init() 218 hwtimer_device2.parent.info = hwtimer_info; in rt_hw_hwtimer_init() 219 hwtimer_device2.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init() 220 ret = rt_device_hwtimer_register(&hwtimer_device2.parent, hwtimer_device2.name, RT_NULL); in rt_hw_hwtimer_init() 223 LOG_D("hwtimer: %s register success.", hwtimer_device2.name); in rt_hw_hwtimer_init() 227 LOG_D("hwtimer: %s register failed.", hwtimer_device2.name); in rt_hw_hwtimer_init() 287 if (TIM_GetITStatus(hwtimer_device2.periph, TIM_IT_Update) == SET) in TIM2_IRQHandler() 289 TIM_ClearITPendingBit(hwtimer_device2.periph, TIM_IT_Update); in TIM2_IRQHandler() 290 rt_device_hwtimer_isr(&hwtimer_device2.parent); in TIM2_IRQHandler()
|
| A D | drv_hwtimer.h | 36 struct hwtimer_device hwtimer_device2 = variable
|
Completed in 6 milliseconds