wdttb: xwdttb_gwdt_example.c File Reference

| wdttb Xilinx SDK Drivers API Documentation

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

Functions
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.

## 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

  DeviceId | is 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_Start(), and XWdtTb_Stop().