wdttb
Vitis Drivers API Documentation
xwdttb_gwdt_example.c File Reference

Overview

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

Note

None

MODIFICATION HISTORY:
Ver   Who  Date     Changes


1.0 sne 03/04/19 Initial release for Generic Watchdog Timer. 5.0 sne 01/31/20 Removed compare value registers write while configuring Generic watchdog window. 5.7 sb 07/12/23 Added support for system device-tree flow.

 

Functions

int GWdtTbExample (u16 DeviceId)
 This function tests the functioning of the Generic watch dog Timer Feature in Polled mode In this function polls up to First window completion, once we reached to generic_wdt_interrupt point it will Refresh. More...
 

Function Documentation

int GWdtTbExample ( u16  DeviceId)

This function tests the functioning of the Generic watch dog Timer Feature in Polled mode In this function polls up to First window completion, once we reached to generic_wdt_interrupt point it will Refresh.

In this function once we reach to Second window time out point It means generating generic_wdt_reset ,We are going to Refresh.

Parameters
DeviceIdis the XPAR_<WDTPSV_instance>_DEVICE_ID value from xparameters.h.
Returns
  • XST_SUCCESS, in window, there is no bad event.
  • XST_FAILURE, otherwise.
Note
None.

References XWdtTb_Config::BaseAddr, XWdtTb_CfgInitialize(), XWdtTb_IsGenericWdtFWExpired(), XWdtTb_IsWdtExpired(), XWdtTb_LookupConfig(), XWdtTb_RestartWdt(), XWdtTb_SelfTest(), XWdtTb_SetGenericWdtWindow(), XWdtTb_Start(), and XWdtTb_Stop().