Gast
#1414743
Hi,
ich habe einen mir bisher noch nicht bekannten Fehler beim compilen
meines ADC Codes für den XMEGA 128 A1.
Ich verwende das Beispiel von Atmel auf der Webseite.
Nun will ich den Code ausführen und bekomme folgende Fehlermeldung in
dieser Funktion, die von Atmel gestellt wird.
../adc_driver.c:82: error: 'ADC_t' has no member named 'CALL'
../adc_driver.c:83: error: 'ADC_t' has no member named 'CALH'
../adc_driver.c:86: error: 'ADC_t' has no member named 'CALL'
../adc_driver.c:87: error: 'ADC_t' has no member named 'CALH'
Die Funktion lautet:
-----------------------------------------------------------------------
void ADC_CalibrationValues_Load(ADC_t * adc)
{
if(&ADCA == adc){
/* Get ADCACAL0 from production signature . */
adc->CALL = SP_ReadCalibrationByte( PROD_SIGNATURES_START +
ADCACAL0_offset );
adc->CALH = SP_ReadCalibrationByte( PROD_SIGNATURES_START +
ADCACAL1_offset );
}else {
/* Get ADCBCAL0 from production signature */
adc->CALL = SP_ReadCalibrationByte( PROD_SIGNATURES_START +
ADCBCAL0_offset );
adc->CALH = SP_ReadCalibrationByte( PROD_SIGNATURES_START +
ADCACAL1_offset );
}
}
Das Struct ADC_t besitzt auch keine Elemente die CALL oder CALH heissen,
zumindest nicht in meiner WINAVR Version.
Müsste ich ein WINAVR Update machen oder liegt hier ein Fehler im Code
vor?