Is it just to confuse me when I try to define ADC in my own code or is there a more sinister motive? :)
I have LCD and USART types defined as classes because it seems like a good idea to me. But when I try to define ADC as a type, or more confusingly, when I think I have it defined and try to use it, strange things happen.
Defining the cryptic register names in the GNU header files is good and I would never inadvertantly try to define those myself. But I would have never guessed that ADC was off limits.
I hope that TIME and TEMPERATURE are still available for my own use. :)
/* Combine ADCL and ADCH */
#define ADC _SFR_MEM16(0x78)
#define ADCW _SFR_MEM16(0x78)
#define ADCL _SFR_MEM8(0x78)
#define ADCH _SFR_MEM8(0x79)
#define ADCSRA _SFR_MEM8(0x7A)