![]() |
gpiops
Xilinx SDK Drivers API Documentation
|
This file contains a design example using the GPIO driver (XGpioPs) in an interrupt driven mode of operation.
The example uses the interrupt capability of the GPIO to detect push button events and set the output LEDs based on the input.
In versal Platform we have two devices(PMC GPIO and PS GPIO),PMC contain 4 banks and 116 pins,PS GPIO contain 2 banks and 58 pins. This example can work for both PS and PMC GPIO based on the value of GPIO_DEVICE_ID The default value of 0 makes this example work for PMC GPIO controller.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a sv 01/18/10 First Release 3.3 ms 04/17/17 Added notes about gpio input and output pin description for zcu102 and zc702 boards, configured Interrupt pin to input pin for proper working of interrupt example. 3.6 sne 08/19/19 Added interrupt support on versal.Using pmc_MIO38 and pmc_MIO39 for PMC device and LPD_MIO14,LPD_MIO15 for PS for testing purpose.
Functions | |
int | main (void) |
Main function that invokes the GPIO Interrupt example. More... | |
int main | ( | void | ) |
Main function that invokes the GPIO Interrupt example.
None. |