Home
last modified time | relevance | path

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

/bsp/gd32/arm/libraries/gd32_drivers/
A Ddrv_hwtimer.c197 static gd32_hwtimer_device g_gd32_hwtimer[] = { variable
442 rt_device_hwtimer_isr(&g_gd32_hwtimer[TIM0_INDEX].hwtimer_dev); in TIMER0_UP_IRQHandler()
453 rt_device_hwtimer_isr(&g_gd32_hwtimer[TIM1_INDEX].hwtimer_dev); in TIMER1_IRQHandler()
464 rt_device_hwtimer_isr(&g_gd32_hwtimer[TIM2_INDEX].hwtimer_dev); in TIMER2_IRQHandler()
530 for (; i < sizeof(g_gd32_hwtimer) / sizeof(g_gd32_hwtimer[0]); i++) in rt_hwtimer_init()
532 g_gd32_hwtimer[i].hwtimer_dev.ops = &g_gd32_hwtimer_ops; in rt_hwtimer_init()
533 g_gd32_hwtimer[i].hwtimer_dev.info = &g_gd32_hwtimer[i].hwtimer_info; in rt_hwtimer_init()
535 rcu_periph_clock_enable(g_gd32_hwtimer[i].hw_data.rcu); in rt_hwtimer_init()
536 NVIC_SetPriority(g_gd32_hwtimer[i].hw_data.irqn, 0); in rt_hwtimer_init()
537 NVIC_EnableIRQ(g_gd32_hwtimer[i].hw_data.irqn); in rt_hwtimer_init()
[all …]

Completed in 3 milliseconds