Searched refs:code_sum (Results 1 – 1 of 1) sorted by relevance
164 uint32_t code_sum = 0; in adc_hal_self_calibration() local191 code_sum += chk_code; in adc_hal_self_calibration()202 uint32_t ret = ((code_sum - chk_code) % (ADC_HAL_CAL_TIMES - 2) < 4) in adc_hal_self_calibration()203 ? (code_sum - chk_code) / (ADC_HAL_CAL_TIMES - 2) in adc_hal_self_calibration()204 : (code_sum - chk_code) / (ADC_HAL_CAL_TIMES - 2) + 1; in adc_hal_self_calibration()