For the XMEGA, Atmel devised some standard naming conventions for registers, bit names, bit group masks, etc. I found it tedious at first, but am trying to get used to using the standard names. Every now and then, though, I encounter one that doesn't work and I can't guess at the correct name.
Is there a list somewhere?
Related question...the include file defining these standard names.
AVR1000: Getting Started Writing C-code for XMEGA says:
A dedicated header file is available for each XMEGA device. If the target device is specified in the project settings (assuming that one uses the IDE for IAR EWAVR), the IAR compiler will automatically include the correct header file if the device file is included as shown in Code Listing 3-1.
Quote:Code Listing 3-1. IAR header file inclusion.
That #include doesn't work for me in avr-gcc. I've seen code snippets that, for example,
but this frequenctly results in conflicts for me.
What is the best practice here? (I have tried to find the answer in the getting started tuts here, but failed.)
I'm sorry if I double posted. Forgot the subject line the firt time.