wdttb: xwdttb_gwdt_selftest_example.c File Reference

| wdttb Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xwdttb_gwdt_selftest_example.c File Reference

## Overview

This file contains an example for using the Generic Watchdog Timer hardware and driver.

Note

None

    MODIFICATION HISTORY:

    Ver   Who  Date     Changes

    1.0   sne   02/04/19 Initial release

## Functions
int | GWdtTbSelfTestExample (u16 DeviceId)
| This function does a minimal test on Generic watchdog timer device and driver as a design example. More...

## Function Documentation

int GWdtTbSelfTestExample | ( | u16 | DeviceId | ) |

This function does a minimal test on Generic watchdog timer device and driver as a design example.

The purpose of this function is to illustrate how to use the XwdtTb component.

Parameters

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

Returns
  - XST_SUCCESS if successful.
  - XST_FAILURE if unsuccessful.

Note
  None.

References XWdtTb_Config::BaseAddr, XWdtTb_CfgInitialize(), XWdtTb_LookupConfig(), XWdtTb_SelfTest(), and XWdtTb_Stop().