/* Start ADC calibration and wait for it to finish. The ADC must have been powered down for at least 2 ADC clock cycles, then powered on before calibration starts  */
void adc_calibrate(uint32_t adc)
/* Start ADC calibration and wait for it to finish. The ADC must have been powered down for at least 2 ADC clock cycles, then powered on before calibration starts  */
void adc_calibrate(uint32_t adc)
{
	adc_calibrate_async(adc);
	while (adc_is_calibrating(adc));
}