Follow-up Comment #2, bugs #12134 (project avr-libc):
Comments forwarded from the debian Bug#299881:
The Analog to Digital Converter registers are defined like so:
#define ADC _SFR_IO16(0x04)
#define ADCL _SFR_IO8(0x04)
#define ADCH _SFR_IO8(0x05)
This is somewhat unfortunate, because "ADC" is also the ADd with Carry
instruction in assembly. This breaks preprocessed assembly files
which use capital instruction mnemonics. (ADCL and ADCH do not
conflict with anything).
Perhaps the 16-bit ADC register could be renamed, or simply not
defined when __ASSEMBLY__ is defined. Whatever solution is
implemented should probably be tested with a C program with inline
assembly as well.
I filed this as "minor" because it's easy to work around by undefining
ADC again after including the header.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12134>