Hello,
I need to use the external interrupt counter (XINT1CTR) in my code for if-else statement. I am setting and clearing status of GPIO pin (configured as an output) based on status of XINT1CTR. Can anyone help ?Thanks in advance.
interrupt void xint1_isr(void)
{
counterxint++ ;
GpioDataRegs.GPASET.bit.GPIO30=1;
if (XINT1CTR>500) // i need to use XINT1CTR to switch the status of GPIO30
{
GpioDataRegs.GPACLEAR.bit.GPIO30=1;
}
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
EINT;
}
Regards
Nikhil