Home
last modified time | relevance | path

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

/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Source/
A Dgd32vf103_timer.c48 void timer_deinit(uint32_t timer_periph) in timer_deinit() argument
50 switch(timer_periph){ in timer_deinit()
129 if((TIMER0 == timer_periph) || (TIMER1 == timer_periph) || (TIMER2 == timer_periph) in timer_init()
130 || (TIMER3 == timer_periph) || (TIMER4 == timer_periph) ){ in timer_init()
142 if((TIMER5 != timer_periph) && (TIMER6 != timer_periph)){ in timer_init()
148 if (TIMER0 == timer_periph) { in timer_init()
163 void timer_enable(uint32_t timer_periph) in timer_enable() argument
697 if (TIMER0 == timer_periph) { in timer_channel_output_config()
728 if (TIMER0 == timer_periph) { in timer_channel_output_config()
759 if (TIMER0 == timer_periph) { in timer_channel_output_config()
[all …]
/bsp/n32/libraries/n32_drivers/
A Ddrv_hwtimer.c172 if (config->timer_periph != TIM1 && config->timer_periph != TIM8) in n32_hwtimer_control()
188 config->timer_periph->EVTGEN |= TIM_EVTGEN_UDGN; in n32_hwtimer_control()
192 TIM_Enable(config->timer_periph, DISABLE); in n32_hwtimer_control()
250 TIM_DeInit(config->timer_periph); in n32_hwtimer_init()
252 if (config->timer_periph != TIM1 && config->timer_periph != TIM8) in n32_hwtimer_init()
291 TIM_Enable(config->timer_periph, DISABLE); in n32_hwtimer_init()
304 TIM_SetCnt(config->timer_periph, 0); in n32_hwtimer_start()
306 TIM_SetAutoReload(config->timer_periph, cnt - 1); in n32_hwtimer_start()
320 TIM_Enable(config->timer_periph, ENABLE); in n32_hwtimer_start()
333 TIM_Enable(config->timer_periph, DISABLE); in n32_hwtimer_stop()
[all …]
A Ddrv_hwtimer.h27 TIM_Module* timer_periph; member
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Include/
A Dgd32vf103_timer.h572 void timer_deinit(uint32_t timer_periph);
578 void timer_enable(uint32_t timer_periph);
580 void timer_disable(uint32_t timer_periph);
586 void timer_update_event_enable(uint32_t timer_periph);
588 void timer_update_event_disable(uint32_t timer_periph);
592 void timer_counter_up_direction(uint32_t timer_periph);
605 uint32_t timer_counter_read(uint32_t timer_periph);
607 uint16_t timer_prescaler_read(uint32_t timer_periph);
631 void timer_break_enable(uint32_t timer_periph);
633 void timer_break_disable(uint32_t timer_periph);
[all …]
/bsp/nuclei/libraries/gd32vf103/HAL_Drivers/
A Ddrv_hwtimer.c91 if (config->timer_periph != TIMER0) in gd32_hwtimer_control()
106 TIMER_PSC(config->timer_periph) = (uint32_t)pre; in gd32_hwtimer_control()
110 timer_disable(config->timer_periph); in gd32_hwtimer_control()
127 CurrentTimer_Count = timer_counter_read(config->timer_periph); in gd32_hwtimer_count_get()
141 timer_deinit(config->timer_periph); in gd32_hwtimer_init()
143 timer_init(config->timer_periph, &initpara); in gd32_hwtimer_init()
147 timer_disable(config->timer_periph); in gd32_hwtimer_init()
167 timer_counter_value_config(config->timer_periph, 0); in gd32_hwtimer_start()
168 timer_autoreload_value_config(config->timer_periph, cnt); in gd32_hwtimer_start()
170 timer_enable(config->timer_periph); in gd32_hwtimer_start()
[all …]
A Ddrv_hwtimer.h23 rt_uint32_t timer_periph; member
/bsp/nuvoton/libraries/m480/rtt_port/
A Ddrv_timer.c27 TIMER_T *timer_periph; member
82 RT_ASSERT(nu_timer->timer_periph != RT_NULL); in nu_timer_init()
93 TIMER_EnableInt(nu_timer->timer_periph); in nu_timer_init()
100 TIMER_Close(nu_timer->timer_periph); in nu_timer_init()
137 TIMER_Start(nu_timer->timer_periph); in nu_timer_start()
150 TIMER_Stop(nu_timer->timer_periph); in nu_timer_stop()
189 TIMER_Stop(nu_timer->timer_periph); in nu_timer_control()
205 nu_timer0.timer_periph = TIMER0; in rt_hw_timer_init()
219 nu_timer1.timer_periph = TIMER1; in rt_hw_timer_init()
233 nu_timer2.timer_periph = TIMER2; in rt_hw_timer_init()
[all …]
/bsp/nuvoton/libraries/m031/rtt_port/
A Ddrv_timer.c28 TIMER_T *timer_periph; member
83 RT_ASSERT(nu_timer->timer_periph != RT_NULL); in nu_timer_init()
94 TIMER_EnableInt(nu_timer->timer_periph); in nu_timer_init()
101 TIMER_Close(nu_timer->timer_periph); in nu_timer_init()
138 TIMER_Start(nu_timer->timer_periph); in nu_timer_start()
151 TIMER_Stop(nu_timer->timer_periph); in nu_timer_stop()
190 TIMER_Stop(nu_timer->timer_periph); in nu_timer_control()
206 nu_timer0.timer_periph = TIMER0; in rt_hw_timer_init()
220 nu_timer1.timer_periph = TIMER1; in rt_hw_timer_init()
234 nu_timer2.timer_periph = TIMER2; in rt_hw_timer_init()
[all …]
/bsp/nuvoton/libraries/m2354/rtt_port/
A Ddrv_timer.c27 TIMER_T *timer_periph; member
108 TIMER_Close(nu_timer->timer_periph); in nu_timer_init()
145 TIMER_Start(nu_timer->timer_periph); in nu_timer_start()
158 TIMER_Stop(nu_timer->timer_periph); in nu_timer_stop()
197 TIMER_Stop(nu_timer->timer_periph); in nu_timer_control()
213 nu_timer0.timer_periph = TIMER0; in rt_hw_timer_init()
227 nu_timer1.timer_periph = TIMER1; in rt_hw_timer_init()
241 nu_timer2.timer_periph = TIMER2; in rt_hw_timer_init()
255 nu_timer3.timer_periph = TIMER3; in rt_hw_timer_init()
269 nu_timer4.timer_periph = TIMER4; in rt_hw_timer_init()
[all …]
/bsp/gd32/arm/libraries/gd32_drivers/
A Ddrv_pwm.c371 rt_uint32_t timer_periph; in channel_output_config() local
382 timer_periph = index_to_timer(gd32_pwm_obj[i].tim_handle.TimerIndex); in channel_output_config()
383 timer_channel_output_config(timer_periph, gd32_pwm_obj[i].tim_handle.channel, ocpara); in channel_output_config()
385 … timer_channel_output_pulse_value_config(timer_periph, gd32_pwm_obj[i].tim_handle.channel, 7999); in channel_output_config()
386 …timer_channel_output_mode_config(timer_periph, gd32_pwm_obj[i].tim_handle.channel, TIMER_OC_MODE_P… in channel_output_config()
387 …timer_channel_output_shadow_config(timer_periph, gd32_pwm_obj[i].tim_handle.channel, TIMER_OC_SHAD… in channel_output_config()
390 …timer_channel_output_state_config(timer_periph, gd32_pwm_obj[i].tim_handle.channel, TIMER_CCX_DISA… in channel_output_config()
399 timer_periph = index_to_timer(gd32_timer_periph_list.TimerIndex[i]); in channel_output_config()
400 if (timer_periph == TIMER0 || timer_periph == TIMER7) in channel_output_config()
402 timer_primary_output_config(timer_periph, ENABLE); in channel_output_config()
[all …]

Completed in 24 milliseconds