Searched refs:prescalers (Results 1 – 1 of 1) sorted by relevance
247 static const unsigned int prescalers[] = { 1, 4, 16, 64 }; in tpu_pwm_config() local263 for (prescaler = 0; prescaler < ARRAY_SIZE(prescalers); ++prescaler) { in tpu_pwm_config()264 period = clk_rate / prescalers[prescaler] in tpu_pwm_config()270 if (prescaler == ARRAY_SIZE(prescalers) || period == 0) { in tpu_pwm_config()276 duty = clk_rate / prescalers[prescaler] in tpu_pwm_config()286 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config()
Completed in 4 milliseconds