scuwdt: xscuwdt_polled_example.c File Reference

| scuwdt Xilinx SDK 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
    *

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

Parameters

  None. |

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, and XScuWdt_Start().

Referenced by main().