I am creating a new component that inherits from the 'TimerInt' component. In one of my methods, I need to write to a TPM register. I can use the following macros in the driver code to access the inherited components values:
inhrsym.TimerInt._Cmp; /* This expands into TPM11 */
inhrsym.TimerInt.Tmr; /* This expands into TPM1 */
From this I loosely know which TPM unit and channel were selected through the property sheet.
How do I actually translate this into the actual register name such as the following?
TPM1C1SC = 0x00;
Do I need to futher use the macroprocessor language to select the correct register through some sort of switch statement?
I can't look into the code of the existing components to get any good examples. The help file is very vague.