wdttb
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
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 5.7 sb 07/12/23 Added support for system device-tree flow. 5.12 vlt 12/18/25 Update Doxygen comments to include SDT flow details.

#include "xparameters.h"
#include "xwdttb.h"

Functions

int GWdtTbSelfTestExample (UINTPTR BaseAddress)
 This function does a minimal test on Generic watchdog timer device and driver as a design example. More...
 

Function Documentation

int GWdtTbSelfTestExample ( UINTPTR  BaseAddress)

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
BaseAddresscontains the base address of the device
Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if unsuccessful.
Note
In XSCT/classic flow, DeviceId is used to look up the device configuration.

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