Searched refs:hwtimer_device1 (Results 1 – 4 of 4) sorted by relevance
| /bsp/wch/arm/Libraries/ch32_drivers/ |
| A D | drv_hwtimer_ch32f10x.c | 29 struct hwtimer_device hwtimer_device1 = variable 241 hwtimer_info = ch32f1_hwtimer_info_config_get(hwtimer_device1.periph); in rt_hw_hwtimer_init() 242 hwtimer_device1.parent.info = hwtimer_info; in rt_hw_hwtimer_init() 243 hwtimer_device1.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init() 244 ret = rt_device_hwtimer_register(&hwtimer_device1.parent, hwtimer_device1.name, RT_NULL); in rt_hw_hwtimer_init() 247 LOG_D("hwtimer: %s register success.", hwtimer_device1.name); in rt_hw_hwtimer_init() 251 LOG_D("hwtimer: %s register failed.", hwtimer_device1.name); in rt_hw_hwtimer_init() 310 if (TIM_GetITStatus(hwtimer_device1.periph, TIM_IT_Update) == SET) in TIM1_UP_IRQHandler() 312 TIM_ClearITPendingBit(hwtimer_device1.periph, TIM_IT_Update); in TIM1_UP_IRQHandler() 313 rt_device_hwtimer_isr(&hwtimer_device1.parent); in TIM1_UP_IRQHandler()
|
| A D | drv_hwtimer_ch32f20x.c | 29 struct hwtimer_device hwtimer_device1 = variable 289 hwtimer_info = ch32f2_hwtimer_info_config_get(hwtimer_device1.periph); in rt_hw_hwtimer_init() 290 hwtimer_device1.parent.info = hwtimer_info; in rt_hw_hwtimer_init() 291 hwtimer_device1.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init() 292 ret = rt_device_hwtimer_register(&hwtimer_device1.parent, hwtimer_device1.name, RT_NULL); in rt_hw_hwtimer_init() 295 LOG_D("hwtimer: %s register success.", hwtimer_device1.name); in rt_hw_hwtimer_init() 299 LOG_D("hwtimer: %s register failed.", hwtimer_device1.name); in rt_hw_hwtimer_init() 448 if (TIM_GetITStatus(hwtimer_device1.periph, TIM_IT_Update) == SET) in TIM1_UP_IRQHandler() 450 TIM_ClearITPendingBit(hwtimer_device1.periph, TIM_IT_Update); in TIM1_UP_IRQHandler() 451 rt_device_hwtimer_isr(&hwtimer_device1.parent); in TIM1_UP_IRQHandler()
|
| /bsp/airm2m/air32f103/libraries/rt_drivers/ |
| A D | drv_hwtimer.c | 202 hwtimer_info = air32_hwtimer_info_config_get(hwtimer_device1.periph); in rt_hw_hwtimer_init() 203 hwtimer_device1.parent.info = hwtimer_info; in rt_hw_hwtimer_init() 204 hwtimer_device1.parent.ops = &hwtimer_ops; in rt_hw_hwtimer_init() 205 ret = rt_device_hwtimer_register(&hwtimer_device1.parent, hwtimer_device1.name, RT_NULL); in rt_hw_hwtimer_init() 208 LOG_D("hwtimer: %s register success.", hwtimer_device1.name); in rt_hw_hwtimer_init() 212 LOG_D("hwtimer: %s register failed.", hwtimer_device1.name); in rt_hw_hwtimer_init() 271 if (TIM_GetITStatus(hwtimer_device1.periph, TIM_IT_Update) == SET) in TIM1_UP_IRQHandler() 273 TIM_ClearITPendingBit(hwtimer_device1.periph, TIM_IT_Update); in TIM1_UP_IRQHandler() 274 rt_device_hwtimer_isr(&hwtimer_device1.parent); in TIM1_UP_IRQHandler()
|
| A D | drv_hwtimer.h | 28 struct hwtimer_device hwtimer_device1 = variable
|
Completed in 8 milliseconds