/* ADC Set Clock Source. 
The ADC clock taken from the APB2 clock can be scaled down by 2, 4, 6 or 8. */
void adc_set_clk_source(uint32_t adc, uint32_t source)
/* ADC Set Clock Source. 
The ADC clock taken from the APB2 clock can be scaled down by 2, 4, 6 or 8. */
void adc_set_clk_source(uint32_t adc, uint32_t source)
{
	uint32_t reg32 = ((ADC_CCR(adc) & ~ADC_CCR_CKMODE_MASK) | source);
	ADC_CCR(adc) = reg32;
}