/* ADC Read the End-of-Conversion Flag. 
This flag is set by hardware at the end of each regular conversion of a channel when a new data is available in the ADCx_DR register. */
bool adc_eoc(uint32_t adc)
/* ADC Read the End-of-Conversion Flag. 
This flag is set by hardware at the end of each regular conversion of a channel when a new data is available in the ADCx_DR register. */
bool adc_eoc(uint32_t adc)
{
	return ADC_ISR(adc) & ADC_ISR_EOC;
}