Home
last modified time | relevance | path

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

/bsp/gd32/arm/libraries/gd32_drivers/
A Ddrv_pwm.c190 static rt_uint32_t index_to_timer(rt_int8_t TimerIndex) in index_to_timer() function
339 timer_deinit(index_to_timer(gd32_timer_periph_list.TimerIndex[i])); in rcu_config()
363 timer_init(index_to_timer(gd32_timer_periph_list.TimerIndex[i]), initpara); in timer_init_para()
382 timer_periph = index_to_timer(gd32_pwm_obj[i].tim_handle.TimerIndex); in channel_output_config()
399 timer_periph = index_to_timer(gd32_timer_periph_list.TimerIndex[i]); in channel_output_config()
451 index_to_timer(pstTimerMap->TimerIndex), configuration->channel, TIMER_CCX_ENABLE); in drv_pwm_enable()
466 psc = timer_prescaler_read(index_to_timer(pstTimerMap->TimerIndex)); in drv_pwm_get()
498 timer_prescaler_config(index_to_timer(pstTimerMap->TimerIndex), psc - 1, TIMER_PSC_RELOAD_NOW); in drv_pwm_set()
505 timer_autoreload_value_config(index_to_timer(pstTimerMap->TimerIndex), period - 1); in drv_pwm_set()
518 timer_counter_value_config(index_to_timer(pstTimerMap->TimerIndex), 0); in drv_pwm_set()
[all …]

Completed in 5 milliseconds