GINT support on Zephyr

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

GINT support on Zephyr

628 次查看
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 回复数

586 次查看
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 项奖励
回复

553 次查看
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 项奖励
回复

599 次查看
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 项奖励
回复

588 次查看
ja_lpc
Contributor III

Thanks for the quick reply.

We shall give this a try.

0 项奖励
回复