Simple and Complex GPIO interrupt call back have same priority.
As you have commented the unnecessary code and using the direct source in the call-back the time which you observe will be optimized.
Thank you for the info about simple vs complex GPIO.
How about GPIO vs GPIF interrupt timing? Do you know if there is any difference in timing between the two? Where is the GPIF interrupt handling code? I can only find the GPIO interrupt handler function in cyu3gpio.c.
We have done some test on GPIO interrupts and GPIF interrupts and found that GPIO interrupt have low latency when compared to GPIF interrupt callback. This is because GPIF interrupt is thread contest and GPIO interrupt is ISR contest. As an average you will have 10us latency for GPIO interrupt call back.
Thank you for the GPIO vs GPIF interrupt timing results.
Complex GPIO interrupts do not work (see post "complex GPIO interrupt"). Will this problem be fixed?
Yes, I do tested and found that interrupt does not functioning on complex GPIO. As per the experts info, there is not difference in simple and complex GPIO interrupt callback functioning. As both are called on ISR contest the average delay you can expect is 9-10us.
I suggest you to go for simple GPIO interrupt as it is only a edge-trigger interrupt.