I'm in the process or porting some software that was originally running on an older 4xxx series processors, and this is failing to compile because of references to IFG1 and IE1.
No problem fixing this to the later SFRIFG1 and SFRIE1 register names, but was curious if there is any way of easily determining at compile time which should be used - ie. is there something that can be used to support conditional compilation of the correct register names? I'm assuming that all the later 5xx, 6xx and FR variants all use the SFR form?
I'm guessing that I should be able to define SFRxxx definitions pointing to the older IFG definitions if the SFR names are undefined after processing msp430.h, but not sure how safe this is?
BTW, I'm using the gcc toolchain under CCS 9.3
Regards - Andrew