This is probably an FAQ but I can't find the answer anywhere - sorry.
I have several Launchpads, an MSP430, TM4C123 and a TM4C129. I have the same sketch that I'd like to target at each of them but since the pin names are different for each of them I need to edit the sketch repeatedly or have three different copies (well two really for the MSP/ARM types).
I'm guessing there's already macro defined somewhere so I could do something like:
#ifdef MSP430
int pin=P1_0;
#endif
#ifdef TM4C123 || TM4C129
int pin=PB_5;
#endif
....and choosing the correct board from the drop down menu in energia will set the appropriate macro.
Do these exist and if so where are they documented? Apologies if the answer is obvious.
Peter