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 Name

Path in Vitis

Path in Github

uartpsv

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

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

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/xilinx-v2020.1/XilinxProcessorIPLib/drivers/uartpsv

The driver source code is organized into different folders.  The table below shows the uartpsv driver source organization. 

...

Test Name

Example Source

Description

Uartpsv interrupt example

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/uartpsv/examples/xuartpsv_intr_example.c

This example sends and receives data using interrupts.

Uartpsv polled example

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/uartpsv/examples/xuartpsv_polled_example.c

This example sends and receives data using polling.

Uartpsv hello world example

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/uartpsv/examples/xuartpsv_hello_world_example.c

This example transmits “Hello world“ string

Example Application Usage

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. 

Example Application Usage

Uartpsv interrupt example

This example sends and receives data using interrupts.

Expected Output

Code Block
Successfully ran UartPsv Interrupt Example Test

Uartpsv polled example

This example sends and receives data using polling.

Expected Output

Code Block
Successfully ran UartPsv Polling Example Test

Uartpsv hello world example

This example transmits “Hello world“ string

Expected Output

Code Block
Successfully ran UartPsv Hello World Example

Example Design Architecture

...