How to configure GPIO9 pins as input with interrupt in i.MX RT1170

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

How to configure GPIO9 pins as input with interrupt in i.MX RT1170

跳至解决方案
254 次查看
sanjana291
Contributor III

Hello,
I am working on the i.MX RT1170.
In my project, I have some pins from GPIO9 configured as inputs.
However, in the SDK examples, I do not see a dedicated IRQ handler for GPIO9 (like GPIO9_Combined_x_y_IRQHandler).

I want to enable interrupts for these GPIO9 input pins, but I am not sure:

  1. Which IRQ number/handler should I use for GPIO9 in the i.MX RT1170?

  2. If GPIO9 does not have its own IRQ, is it combined with another port's IRQ?

标记 (4)
0 项奖励
回复
1 解答
230 次查看
mayliu1
NXP Employee
NXP Employee

I suggest you refer to the following link.

https://blog.csdn.net/Oushuwen/article/details/121994692

There are more detail description about GPIO interrupt in RT1170.

Best Regards

在原帖中查看解决方案

3 回复数
240 次查看
mayliu1
NXP Employee
NXP Employee

Hi @sanjana291 ,

Thank you so much for your interest in our products and for using our community.

Regarding your question "Which IRQ number/handler should I use for GPIO9 in the i.MX RT1170? " and  "If GPIO9 does not have its own IRQ, is it combined with another port's IRQ?"

In RT1170 chip, GPIO9 can use  interrupt number 99.

mayliu1_2-1754899480744.png

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 项奖励
回复
235 次查看
sanjana291
Contributor III
I'm asking about GPIO9, can we use GPIO3's IRQ for this instead? but GPIO9 has an IRQ on the CM4
0 项奖励
回复
231 次查看
mayliu1
NXP Employee
NXP Employee

I suggest you refer to the following link.

https://blog.csdn.net/Oushuwen/article/details/121994692

There are more detail description about GPIO interrupt in RT1170.

Best Regards