Searched refs:div_int (Results 1 – 1 of 1) sorted by relevance
110 int div_int; in pwm_rpi_set_cycles() local117 div_int = cfg->slice_configs[slice].integral; in pwm_rpi_set_cycles()120 if (div_int == 0) { in pwm_rpi_set_cycles()121 div_int = 1; in pwm_rpi_set_cycles()123 while ((period_cycles / div_int - 1) > PWM_RPI_PICO_COUNTER_TOP_MAX) { in pwm_rpi_set_cycles()124 div_int *= 2; in pwm_rpi_set_cycles()127 if (div_int > (UINT8_MAX + 1)) { in pwm_rpi_set_cycles()131 period_cycles /= div_int; in pwm_rpi_set_cycles()132 pulse_cycles /= div_int; in pwm_rpi_set_cycles()144 pwm_set_clkdiv_int_frac(slice, div_int, div_frac); in pwm_rpi_set_cycles()