Other Parts Discussed in Thread: CC1310, CC2650
I have a TI RTOS that currently is configured for the CC1310 Launchpad but I need to also support builds for CC1310 custom boards (with a different chip variant and DIO connections) and for CC2650 targets, both the launchpad and the sensor tag.
What are the best practices to create a project that supports multiple targets? Should I use the same file structure but with #ifdefs in the board-specific files (so instead of CC1310_LAUNCXL.c, there will be a file that includes this one and also the corresponding ones for CC2650, etc, #ifdef'ed)? What about the linker cmd file?
ccfg.c is also a bit problematic, because it is a link to <startup_files/ccfg.c>, and the startup_files directory is specific to the CC1310, so for CC2650 I will need a different set of project properties. Maybe this can be done with separate build configurations.
Any help on how to do this cleanly will be appreciated.
Thanks, Sivan Toledo