gpiops
Vitis Drivers API Documentation
Examples

You can refer to the below stated example applications for more details on how to use gpiops driver.

xgpiops_intr_example.c

Contains an example on how to use the XGpiops driver directly. This example shows the usage of the driver in interrupt mode. and uses the interrupt capability of the GPIO to detect push button events, set the output LEDs based on the input . The user needs to press all the switches SW1-SW5 on the evaluation board to exit from this example.

For details, see xgpiops_intr_example.c.

xgpiops_polled_example.c

Contains an example on how to use the XGpiops driver directly. This example provides the usage of APIs for reading/writing to the individual pins.Same example we are using in versal for execution of pmc gpio & Ps gpio with configuring Gpio.PmcGpio value.if Gpio.PmcGpio =1 it will work for pmc gpio else it works for ps gpio.

For details, see xgpiops_polled_example.c.

Note: GPIO pin number has to be changes based on the board design.