Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/pwm/
Dpwm_pca9685.c49 #define PWM_PERIOD_COUNT_PS(pre_scale) (PWM_STEPS * (pre_scale + 1)) argument
86 uint8_t pre_scale; member
173 int32_t pre_scale; in pca9685_set_cycles() local
183 pre_scale = DIV_ROUND_UP((int64_t)period_count, PWM_STEPS) - 1; in pca9685_set_cycles()
185 if (pre_scale < PRE_SCALE_MIN) { in pca9685_set_cycles()
189 } else if (pre_scale > PRE_SCALE_MAX) { in pca9685_set_cycles()
196 if (pre_scale != data->pre_scale) { in pca9685_set_cycles()
197 data->pre_scale = pre_scale; in pca9685_set_cycles()
198 ret = set_pre_scale(dev, pre_scale); in pca9685_set_cycles()
/Zephyr-latest/drivers/adc/
Dadc_b91.c283 adc_pre_scale_e pre_scale; in adc_b91_channel_setup() local
334 pre_scale = ADC_PRESCALE_1; in adc_b91_channel_setup()
337 pre_scale = ADC_PRESCALE_1F4; in adc_b91_channel_setup()
391 adc_init(vref_internal_mv, pre_scale, sample_freq); in adc_b91_channel_setup()