This does not work (code is on the C28 side):
GpioDataRegs.GPCTOGGLE.bit.GPIO70=1;
The bit/output always stays at 0.
However, with no other changes, replacing the above line with the following works as planned:
if (GpioDataRegs.GPCDAT.bit.GPIO70==1)
GpioDataRegs.GPCCLEAR.bit.GPIO70=1;
else
GpioDataRegs.GPCSET.bit.GPIO70=1;
Am I missing something?
EDIT: One thing to note, this is happening at a loop that is executing every 1-2Hz, if that matters.