wdttb
Vitis Drivers API Documentation
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.

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
DeviceIdis 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().