UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
385 Views
Registered: ‎12-03-2018

GPIO Interrupt trigger modes

Hi, everyone

I'm creating a simple baremetal application to turn on an LED while a button is pressed in my Zybo board, and so, practice how to use interrupts and XGpio driver lib. But looking into the driver flies a didn't found any function to change the interrupt trigger (rising/falling edge). There is any way to chgange the trigger mode?

Best regards,

Ramon

 

0 Kudos
3 Replies
Scholar ericv
Scholar
350 Views
Registered: ‎04-13-2015

Re: GPIO Interrupt trigger modes

@ramonherasgar 

XGpioPs_SetIntrType().

0 Kudos
292 Views
Registered: ‎12-03-2018

Re: GPIO Interrupt trigger modes

Thanks @ericv,

But I was using de Xgpio lib which is the AXI GPIO driver, different from ps GPIOs.

“I'm creating a simple baremetal application to turn on an LED while a button is pressed in my Zybo board, and so, practice how to use interrupts and XGpio driver lib”

Regards,

Ramón.

0 Kudos
Xilinx Employee
Xilinx Employee
254 Views
Registered: ‎10-30-2017

Re: GPIO Interrupt trigger modes

hi @ramonherasgar ,

 

Please check the AXI GPIO standalone driver : https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841921/AXI+gpio+standalone+driver

It has the interrupt example too.

 

Best Regards,

Srikanth

0 Kudos