scuwdt
Xilinx SDK Drivers API Documentation
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

◆ main()

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

◆ 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
WdtInstancePtris a pointer to the instance of XScuWdt driver.
DeviceIdis 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(), and XScuWdt_SetWdMode.

Referenced by main().