/* ADC Initialize Calibration Registers. 
This resets the calibration registers. It is not clear if this is required to be done before every calibration operation. */
void adc_reset_calibration(uint32_t adc)
/* ADC Initialize Calibration Registers. 
This resets the calibration registers. It is not clear if this is required to be done before every calibration operation. */
void adc_reset_calibration(uint32_t adc)
{
	ADC_CR2(adc) |= ADC_CR2_RSTCAL;
	while (ADC_CR2(adc) & ADC_CR2_RSTCAL);
}