Skip to main content
DBurr
Senior
Mar 4, 2020 4:43 PM UTC
Solved

How do you differentiate GPIO interrupts that share the same EXTI interrupt?

Hi, I have a design where I have multiple GPIO interrupts and some share the same interrupt input line, for example EXTI10_15. How can I differentiate in the interrupt callback routine which GPIO triggered the interrupt aside from reading these GPIOs' input states?

Thanks,

Doug Burrell

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Mar 4, 2020 4:56 PM UTC

They should flag individually, and OR together to generate the IRQ

Check EXTI->PR register (on F4 for example)

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

4 replies

waclawek.jan
Super User
Mar 4, 2020 4:55 PM UTC

0690X00000DYiQwQAL.png

JW

DBurr
DBurrAuthor
Senior
Mar 4, 2020 5:04 PM UTC

Thanks, that's really helpful.

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Mar 4, 2020 4:56 PM UTC

They should flag individually, and OR together to generate the IRQ

Check EXTI->PR register (on F4 for example)

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
DBurr
DBurrAuthor
Senior
Mar 4, 2020 5:04 PM UTC

Thanks for the info! That's exactly what I was looking for.