Searched refs:prescaler_index (Results 1 – 2 of 2) sorted by relevance
42 int prescaler_index; in api_set_cycles() local44 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()
246 int prescaler_index; in max32_counter_init() local248 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()