How to set up the interrupt handler for GPIO?
It is possible to have 2 OPB devices working with interrupts. There is a note in the EDK documentation under the function XIntc_Connect(), that states “The handler provided as an argument will overwrite any handler that was previously connected” which is found at: C:/XilinxEDK/sw/XilinxProcessorIPLib/drivers/intc_v1_00_c/doc/html/api/ on the lab computers. To get around this, you may need to create and initialize more than one interrupt controller instances with the same device ID. Connect each of your handlers and OPB device instances to the one of these controllers. If all your arguments are right you will be able to handle interrupts from different OPB sources. There may be an easier way. For Gpio interrupts specifically there is an example in the EDK documentation that is very helpful.