GINT support on Zephyr

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GINT support on Zephyr

768 Views
ja_lpc
Contributor III

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?

Labels (1)
0 Kudos
Reply
4 Replies

726 Views
ja_lpc
Contributor III

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.

0 Kudos
Reply

693 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

739 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

There is GINT example for LPC55xx in SDK package, pls refer to the screenshot:

xiangjun_rong_0-1696829848124.png

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

 

 

0 Kudos
Reply

728 Views
ja_lpc
Contributor III

Thanks for the quick reply.

We shall give this a try.

0 Kudos
Reply