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

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

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

Jump to solution
232 Views
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?

0 Kudos
Reply
1 Solution
208 Views
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

View solution in original post

3 Replies
218 Views
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 Kudos
Reply
213 Views
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 Kudos
Reply
209 Views
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