Other Parts Discussed in Thread: C2000WARE
I recently migrated some code from CPU1 to CPU2. I enabled GPIO pins on CPU1, and they work just fine. But one of my input pins has an edge-trigger interrupt that is not firing any longer.
I must have missed something in the setup. Is there an example of using GPIO interrupts on CPU2? Thanks in advance.
CPU1 initialization:
...
// Configure edge-triggered interrupt for pin
GPIO_setMasterCore(myPin, GPIO_CORE_CPU2);
GPIO_setInterruptType(GPIO_INT_XINT1, GPIO_INT_TYPE_RISING_EDGE);
GPIO_setInterruptPin(myPin, GPIO_INT_XINT1);
GPIO_enableInterrupt(GPIO_INT_XINT1);
GPIO_setQualificationMode(myPin, GPIO_QUAL_ASYNC);
...
CPU2 code:
...
__interrupt void MyPinISR(void)
{
GPIO_togglePin(testPin);
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP1);
}
...
Interrupt_register(INT_XINT1, &MyPinISR);
Interrupt_enable(INT_XINT1);
...