void C1(void) // Toggle GPIO-34
//----------------------------------------
{
if(EPwm1Regs.TZ**.bit.OST==0x1) // TripZ for PWMs is low (fault trip)
{ TripFlagDMC=1;
}
GpioDataRegs.GPBTOGGLE.bit.GPIO34 = 1; // Turn on/off LD3 on the controlCARD
//-----------------
//the next time CpuTimer2 'counter' reaches Period value go to C2
C_Task_Ptr = &C2;
//-----------------
} |