GINT support on Zephyr

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GINT support on Zephyr

766件の閲覧回数
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?

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

724件の閲覧回数
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 件の賞賛
返信

691件の閲覧回数
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 件の賞賛
返信

737件の閲覧回数
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 件の賞賛
返信

726件の閲覧回数
ja_lpc
Contributor III

Thanks for the quick reply.

We shall give this a try.

0 件の賞賛
返信