Lines Matching refs:chk_code
167 uint32_t chk_code = 0; in adc_hal_self_calibration() local
172 chk_code = (code_h + code_l) / 2; in adc_hal_self_calibration()
173 adc_ll_set_calibration_param(adc_n, chk_code); in adc_hal_self_calibration()
177 code_h = chk_code; in adc_hal_self_calibration()
179 code_l = chk_code; in adc_hal_self_calibration()
181 chk_code = (code_h + code_l) / 2; in adc_hal_self_calibration()
182 adc_ll_set_calibration_param(adc_n, chk_code); in adc_hal_self_calibration()
185 chk_code += 1; in adc_hal_self_calibration()
186 adc_ll_set_calibration_param(adc_n, chk_code); in adc_hal_self_calibration()
190 code_list[rpt] = chk_code; in adc_hal_self_calibration()
191 code_sum += chk_code; in adc_hal_self_calibration()
201 chk_code = code_h + code_l; 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()