Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/adc/
Dadc_sam0.c74 uint64_t scaled_acq; in adc_sam0_acquisition_to_clocks() local
84 scaled_acq = (uint64_t)ADC_ACQ_TIME_VALUE(acquisition_time) * in adc_sam0_acquisition_to_clocks()
88 scaled_acq = (uint64_t)ADC_ACQ_TIME_VALUE(acquisition_time) * in adc_sam0_acquisition_to_clocks()
100 scaled_acq *= 2U; in adc_sam0_acquisition_to_clocks()
101 scaled_acq += cfg->freq / 2U; in adc_sam0_acquisition_to_clocks()
102 scaled_acq /= cfg->freq; in adc_sam0_acquisition_to_clocks()
103 if (scaled_acq <= 1U) { in adc_sam0_acquisition_to_clocks()
107 scaled_acq -= 1U; in adc_sam0_acquisition_to_clocks()
108 if (scaled_acq >= 64U) { in adc_sam0_acquisition_to_clocks()
112 return (int)scaled_acq; in adc_sam0_acquisition_to_clocks()