I'm getting those errors for the following piece of code
The errors are at nvm_get_production_signature_row_offset.Code:#if (CONFIG_OSC_RC32_CAL==48000000UL) MSB(cal) = nvm_read_production_signature_row( nvm_get_production_signature_row_offset(USBRCOSC)); LSB(cal) = nvm_read_production_signature_row( nvm_get_production_signature_row_offset(USBRCOSCA));
The definition of the variable is here:
I think I'm seeing over some minor things but I can't find an answer.Code:#if defined(__GNUC__) # define nvm_get_production_signature_row_offset(regname) \ offsetof(NVM_PROD_SIGNATURES_t, regname) #elif defined(__ICCAVR__) # define nvm_get_production_signature_row_offset(regname) (regname##_offset) #else # error Unknown compiler #endif
Have used the search here on the forum but found out nothing.
I've got the code from ftp://efo-6.ip.peterstar.net/pub/efo...58977675762dd3 but I can't find an explanation there to solve the problem