Tool/software: Code Composer Studio
Amongst my team we each have several different LaunchPad kits and am trying to set up some common code that can compile automatically to each one. That is, I want to be able to set up our code so that some of the common functionality is pre-configured and we just have to activate the right target configuration. Obviously this doesn't completely scale for the things that are completely different between the boards, but all of them support some sort of $X or $Y but sometimes allocated differently.
For example, my MSP-EXP430F5529LP has its LEDs on P1.0 and P4.7, and its switches on P2.1 and P1.1. But my MSP-EXP430FR6989 has its LEDs on P1.0 and P3.7, and its switches on P1.1 and P1.2. Others on the team have different setups, but they all have a couple switches and blinkenlights and serial peripherals in common.
I don't want to have to maintain separate branches or revert our code to a different patch each time one of us goes to work on it and switches between boards. Is there a way using the ccxml files in the targetConfigs folder, or some other mechanism, to define a per-target header file or per-target preprocessor definitions for things like `MY_LED2_PORTOUT_ADDR`?
Does anyone else use this work pattern or is it only really supported to pick one particular board that everyone ends up using even during the prototyping/experimentation phases of a project?