Isn't the GINT interrupt interface not supported on Zephyr?
We were using PINT in previous products. But on the new product, we need more interrupt configuration on GPIO pins which is not possible via PINT(as only 8 are possible).
But I couldn't see the GINT interface on Zephyr. Isn't this interface supported via Zephyr?
A quick question though.
This is still not in the Zephyr right?
Why I mentioned Zephyr in specific is because we will have to align to its dts - device tree and in the existing one i didnt find entry for GINT there.
Hi,
I suppose that the Zephry just provides some methods, for the peripherals, you have to add the code yourself.
Hope it is helpful
BR
XiangJun Rong
Hi,
There is GINT example for LPC55xx in SDK package, pls refer to the screenshot:
In the ISR of GINT, because 32 pins share the same interrupt vector, you have to check the interrupt source and clear the flag in the ISR. In the ISR, you have to set a event flag to trigger an event with the code like.
status = tx_event_flags_set(&event_flags_0, 0x1, TX_OR);
I suppose that the GINT interrupt logic priority should be higher than the context switching interrupt, in other words, the GINT interrupt numeric priority value in contex-M33 priority register should be lower than that of the context switching interrupt.
Hope it can help you
BR
XiangJun Rong
Thanks for the quick reply.
We shall give this a try.