Home
last modified time | relevance | path

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

/bsp/wch/risc-v/Libraries/ch56x_drivers/
A Dch56x_timer.c101 volatile struct timer_registers *txreg; in hwtimer_start() local
111 txreg = hwtimer_device->reg_base; in hwtimer_start()
112 txreg->CNT_END = cnt; in hwtimer_start()
113 txreg->CTRL_MOD.reg = RB_TMR_ALL_CLEAR; in hwtimer_start()
114 txreg->CTRL_MOD.reg = RB_TMR_COUNT_EN; in hwtimer_start()
115 txreg->INTER_EN.cyc_end = 1; in hwtimer_start()
130 txreg = hwtimer_device->reg_base; in hwtimer_stop()
132 txreg->INTER_EN.reg = 0; in hwtimer_stop()
219 if (txreg->INT_FLAG.cyc_end) in _hwtimer_isr_common()
224 txreg->CTRL_MOD.reg = 0; in _hwtimer_isr_common()
[all …]

Completed in 6 milliseconds