/* ADC Set the Sample Time for All Channels. 
The sampling time can be selected in ADC clock cycles from 1.5 to 239.5, same for all channels. */
void adc_set_sample_time_on_all_channels(uint32_t adc, uint8_t time)
/* ADC Set the Sample Time for All Channels. 
The sampling time can be selected in ADC clock cycles from 1.5 to 239.5, same for all channels. */
void adc_set_sample_time_on_all_channels(uint32_t adc, uint8_t time)
{
	ADC_SMPR(adc) = time & ADC_SMPR_SMP;
}