I'm feeding an interrupt source into PTE6 of my K60 and I'm trying to get it to call my application specific ISR. My problem is that my ISR never gets called, and I'm unsure as to what I've missed. What I know is as follows:
I've configured PTE6 to be GPIO (Alt mux = 1) and set the PORT_PCR_IRQC to 0x0A (falling edge triggered IRQ)
The external source is driving PTE6 low (seen on oscilloscope)
The ISF bit in PORTE_BASE_PTR->PCR is going high. My code can poll this and recognises the event.
Bit 6 in PORTE_BASE_PTR->ISFR is going high. My code can poll this and recognises the event.
The code _int_install_isr(INT_PORTE, porteMQXISR, pEvent); puts my function in the MQX interrupt handlers list.
My function porteMQXISR() never gets called.
It seems I must do something else, but I don't know what. Theories so far include:
A - Configure some special register to unmask or route the interrupt signal from PORT E to the NVIC
B - Configure the NVIC to route the interrupt signal to the processor
C - I'm not providing the correct arguements, e.g. vector number to MQX
Can anyone shed any light on this?