I have code that can run on the F28035 controlCARD and a custom board with F28035.
The code maps GPIO differently (to LEDs, PWMs, etc.) depending on whether it is the controlCARD or not.
Right now, I am doing this detection via the DevEmuRegs.REVID register.
The controlCARD has REVID 0 and the custom board has REVID 1.
My concern is that if a custom board is ever manufactured and populated with an older chip, one with silicon rev 0, that it will operate incorrectly (potentially safety issue if we are PWMing the wrong switches).
To avoid having to have multiple versions of the same code, is there a more surefire way to detect if we are running on a controlCARD at boot time?