For anyone who gets this same error:
I found bug report http://asf.atmel.com/bugzilla/show_bug.cgi?id=3002
which replaces:
void ADC_IrqHandler(void)
{
//Check the ADC conversion status
if ((adc_get_status(ADC).isr_status & ADC_ISR_DRDY) == ADC_ISR_DRDY)
{
//Get latest digital data value from ADC and can be used by application
uint32_t result = adc_get_latest_value(ADC);
}
}
with:
void ADC_IrqHandler(void)
{
//Check the ADC conversion status
if (adc_get_status(ADC) & ADC_ISR_DRDY)
{
//Get latest digital data value from ADC and can be used by application
uint32_t result = adc_get_latest_value(ADC);
}
}
I guess eventually the example code will be updated