uartpsv: xuartpsv_selftest_example.c File Reference

| uartpsv Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List

Functions
xuartpsv_selftest_example.c File Reference

## Overview

This file contains an example using the XUartPsv driver to do self test on the device.

Note

None

MODIFICATION HISTORY:

    Ver  Who  Date      Changes

    1.0  sg   09/18/17  First Release

## Functions
int | UartPsvSelfTestExample (u16 DeviceId)
| This function does a minimal test on the XUartPsv driver. More...
int | main (void)
| Main function to call the example. More...

## Function Documentation

int main | ( | void |  | ) |

Main function to call the example.

Parameters

  None |

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE

Note
  None

References UartPsvSelfTestExample().

int UartPsvSelfTestExample | ( | u16 | DeviceId | ) |

This function does a minimal test on the XUartPsv driver.

Parameters

  DeviceId | is the XPAR_<UARTPSV_instance>_DEVICE_ID value from xparameters.h

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE

Note
  None

References XUartPsv_Config::BaseAddress, XUartPsv_CfgInitialize(), XUartPsv_LookupConfig(), and XUartPsv_SelfTest().

Referenced by main().