| scuwdt Vitis Drivers API Documentation

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

Functions
xscuwdt_polled_example.c File Reference

## Overview

This file contains a design example using the Xilinx SCU Private Watchdog Timer driver (XScuWdt) and hardware device in watchdog mode.

This test illustrates how to initialize the watchdog device and restart it periodially to avoid the assertion of the WDRESETREQ pin.

Note
  None.

MODIFICATION HISTORY:

      Ver   Who  Date     Changes

      1.00a sdm  01/15/10 First release
      2.5   asa  07/18/23 Added support for workflow decouplig flow.
                          Interrupt wrapper support has also been added.
      2.5   dp   09/08/23 Update example to stop wdt at end of the test
    *

## Functions
int | ScuWdtPolledExample (XScuWdt *WdtInstancePtr, u16 DeviceId)
| This function does a minimal test on the watchdog timer device and driver. More...
int | main (void)
| Main function to call the Scu Priver Wdt polled mode example. More...

## Function Documentation

int main | ( | void |  | ) |

Main function to call the Scu Priver Wdt polled mode example.

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful.

Note
  None.

References ScuWdtPolledExample().

int ScuWdtPolledExample | ( | XScuWdt * | WdtInstancePtr,
|  | u16 | DeviceId
| ) |  |

This function does a minimal test on the watchdog timer device and driver.

The purpose of this function is to illustrate how to use the XScuWdt driver.

Parameters

  WdtInstancePtr | is a pointer to the instance of XScuWdt driver.
  DeviceId | is the unique device id of the device.

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE.

Note
  None.

References XScuWdt_Config::BaseAddr, XScuWdt_CfgInitialize(), XScuWdt_LoadWdt, XScuWdt_LookupConfig(), XScuWdt_RestartWdt, XScuWdt_SetWdMode, XScuWdt_Start(), and XScuWdt_Stop().

Referenced by main().