How can I add external interrupts to the GIC on Zynq devices in XPS?
To add an external interrupt in XPS, open the MHS file and add a port to the top level ports similar to the following:
Note: For more information on creating external ports, see Chapter 2 of the Platform Specification Guide:
Once this is done, open the Ports tab in the System Assembly view in XPS.
From the Interrupt Controller drop-down, select processing_system7_0, and in the Connected Port Column, select L to H No Connection.
In the GUI, use the blue arrow to add interrupts to the Connected Interrupt(s):
Note: The interrupt added first will be connected to IRQ_F2P port 91, the second interrupt that is added will be IRQ_F2P port 90, etc.
Export to SDK.
For an example application that uses external interrupts on Zynq devices, see the attached interrupt_app.c file at the end of this answer record.