Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The source code for the driver is included with the Vitis Unified Software Platform installation, as well as being available in the Xilinx Github repository. 

Driver nameDriver path in VitisPath in Git Hub
gpiops

<Vitis Install Directory>/data/embedded/XilinxProcessorIPLib/drivers/gpiops

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/gpiops


Info

Note: To view the sources for a particular release, use the rel-version tag in github.  For example, for the 2020.1 release, the proper version of the code is: https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/gpiops


The driver source code is organized into different folders. The table below shows the rtcpsu driver source organization.
DirectoryDescription
srcDriver source files
examplesExample applications that show how to use the driver features
docProvides the API and data structure details
dataDriver .tcl and .mdd file

Driver Implementation

For a full list of features supported by this IP, please refer Chapter 27: Real Time Clock in Zynqmp Trm

...

Links to Examples

Examples Path:

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/gpiops/examples

Test NameExample source

Description

Polledxgpiops_polled_example.cThis example provides the usage of API's for reading/writing to the individual pins.
Interrupt

xgpiops_intr_example.c

This example shows the usage of the driver in interrupt mode. It uses the interrupt capability of the GPIO to detect push button events and set the output LED based on the input.

Example Application Usage

GpioPs examples

Expected Output

...