Not sure if this is possible:
I have a large application - almost fills 32k of ATMega324 but has a number of versions: two different processors, three different displays and associated drivers, but eighty percent of the file is common.
While obviously one can conditionally include the necessary header files and #ifdef the different registers and code changes, I'm not sure if I can define a processor in the source to allow AS5 to select the appropriate compiler options, of if they're hard-set in the configuration options.
Ideally I would like to uncomment a single define at the top of the source and have the thing generate the appropriate code, but I don't know if that can apply to different processors. I don't want to end up with a dozen different slabs of code; I already have that and synchronising them is messy.