Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/counter/
Dcounter_sam_tc.c140 uint32_t alarm_value; in counter_sam_tc_set_alarm() local
170 alarm_value = alarm_cfg->ticks; in counter_sam_tc_set_alarm()
172 alarm_value = tc_ch->TC_CV + alarm_cfg->ticks; in counter_sam_tc_set_alarm()
174 alarm_value %= top_value; in counter_sam_tc_set_alarm()
179 tc_ch->TC_RA = alarm_value; in counter_sam_tc_set_alarm()
184 tc_ch->TC_RB = alarm_value; in counter_sam_tc_set_alarm()
190 LOG_DBG("set alarm: channel %u, count %u", chan_id, alarm_value); in counter_sam_tc_set_alarm()