I have an AS7 project that can be compiled for multiple processors using several #define and #ifdef type segments.
The problem comes when trying to explain to someone else that they must both change the device in the project properties AND uncomment the associated #define in the code.
So, is there a predefined macro that gets set with the value of project properties device setting that I could use?
And is there a way (in AS7) to show all currently defined and/or predefined macros?
(I seem to remember a recent topic on this, but my google searches have not found anything valid.)
I found a way to list predefined macros:
avr-gcc -dM -E - < /nul > foo.txt
(There is a better way, and much more complete, see posts #2 & #4.)