I just wanted to share a problem on macro substitution.
Following link gives a clear information on the problem as well as the
My issue was with the use of token pasting operator.
I had a similar problem where in, instead of the ‘value’ the ‘macro’ itself
was getting placed.
Actually it should have been expanded as – (*((&TMR2)) = 0x12345678)
[VREG implemented as TMR##i]
But it is getting expanded as – (*((&TMRTMR_ID_2)) = 0x12345678)
It was possible to get rid of this problem by incorporating one more level of