![]() |
scuwdt
Xilinx SDK Drivers API Documentation
|
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.
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... | |
int main | ( | void | ) |
Main function to call the Scu Priver Wdt polled mode example.
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.
WdtInstancePtr | is a pointer to the instance of XScuWdt driver. |
DeviceId | is the unique device id of the device. |
References XScuWdt_Config::BaseAddr, XScuWdt_CfgInitialize(), XScuWdt_LoadWdt, XScuWdt_LookupConfig(), and XScuWdt_SetWdMode.
Referenced by main().