Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/counter/
Dcounter_sam_tc.c103 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_start() local
105 tc_ch->TC_CCR = TC_CCR_CLKEN | TC_CCR_SWTRG; in counter_sam_tc_start()
114 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_stop() local
116 tc_ch->TC_CCR = TC_CCR_CLKDIS; in counter_sam_tc_stop()
125 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_get_value() local
127 *ticks = tc_ch->TC_CV; in counter_sam_tc_get_value()
138 TcChannel *tc_ch = &tc->TcChannel[dev_cfg->tc_chan_num]; in counter_sam_tc_set_alarm() local
144 top_value = tc_ch->TC_RC; in counter_sam_tc_set_alarm()
161 tc_ch->TC_IDR = TC_IDR_CPAS; in counter_sam_tc_set_alarm()
163 tc_ch->TC_IDR = TC_IDR_CPBS; in counter_sam_tc_set_alarm()
[all …]