/* ADC set multi mode. 
The various modes possible are described in the reference manual. */
void adc_set_multi_mode(uint32_t adc, uint32_t mode)
/* ADC set multi mode. 
The various modes possible are described in the reference manual. */
void adc_set_multi_mode(uint32_t adc, uint32_t mode)
{
	ADC_CCR(adc) &= ~(ADC_CCR_DUAL_MASK << ADC_CCR_DUAL_SHIFT);
	ADC_CCR(adc) |= (mode << ADC_CCR_DUAL_SHIFT);
}