Versions Compared

Key

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

...

Example Applications

Refer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications.  These example applications can be imported into the Vitis IDE from the Board Support Package  settings tab.

Links to Examples

Examples Path:

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

Test NameExample sourceDescription

xgpio_example.c

This example provides the usage of blinking leds on hardware.

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

xgpio_low_level_example.cThis example provides the usage of  low level operations.

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

Example Application Usage

GPIO examples

We can observed output on hardware board

 ex: blinking leds in polled and interrupt mode

Example Design Architecture

   NA

ChangeLog

2022.1

 None

2021.2

None