/* ADC Calibration. 
The ADC must have been powered down for at least 2 ADC clock cycles, then powered on. before calibration starts */
void adc_calibration(uint32_t adc)
/* ADC Calibration. 
The ADC must have been powered down for at least 2 ADC clock cycles, then powered on. before calibration starts */
void adc_calibration(uint32_t adc)
{
	ADC_CR2(adc) |= ADC_CR2_CAL;
	while (ADC_CR2(adc) & ADC_CR2_CAL);
}