/* Wait for the next converted data and return its value.  */
uint32_t adc_get_latest_value(volatile avr32_adc_t *adc)
/* Wait for the next converted data and return its value.  */
uint32_t adc_get_latest_value(volatile avr32_adc_t *adc)
{
	Assert( adc != NULL );
	while ((adc->sr & AVR32_ADC_DRDY_MASK) != AVR32_ADC_DRDY_MASK) {
	}
	return adc->lcdr;
}