This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5438: Is there any standard way of determining if processor definitions use IFG1 or SFRIFG1?

Part Number: MSP430F5438

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