Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/pwm/
Dpwm_max32.c42 int prescaler_index; in api_set_cycles() local
44 prescaler_index = LOG2(cfg->prescaler); in api_set_cycles()
45 if (prescaler_index == 0) { in api_set_cycles()
49 pwm_cfg.pres = TMR_PRES_2 + (prescaler_index - 1); in api_set_cycles()
/Zephyr-latest/drivers/counter/
Dcounter_max32_timer.c246 int prescaler_index; in max32_counter_init() local
248 prescaler_index = LOG2(cfg->prescaler); in max32_counter_init()
249 if (prescaler_index == 0) { in max32_counter_init()
253 tmr_cfg.pres = TMR_PRES_2 + (prescaler_index - 1); in max32_counter_init()