cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
467 Views
Registered: ‎02-17-2019

Zybo Board Interrupt to specific button pin in C

Jump to solution

Hi,

I'd like to set an interrupt that only happens when PB0 is pressed. Right now I have it working where all the buttons can trigger the ISR, but I want to know if I can be more specific with the buttons. I'm doing this in C in the SDK.  Thanks for the help.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
419 Views
Registered: ‎09-12-2007

You can just read the GPIO data register in your interrupt handler to know what button was pressed

View solution in original post

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
420 Views
Registered: ‎09-12-2007

You can just read the GPIO data register in your interrupt handler to know what button was pressed

View solution in original post

0 Kudos