/* ADC Read the End-of-Conversion Flag. 
This flag is set after all channels of a regular or injected group have been converted. */
bool adc_eoc(uint32_t adc)
/* ADC Read the End-of-Conversion Flag. 
This flag is set after all channels of a regular or injected group have been converted. */
bool adc_eoc(uint32_t adc)
{
	return (ADC_SR(adc) & ADC_SR_EOC) != 0;
}