![]() |
scuwdt
Vitis 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 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... | |
int main | ( | void | ) |
Main function to call the Scu Priver Wdt polled mode example.
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(), XScuWdt_RestartWdt, XScuWdt_SetWdMode, XScuWdt_Start(), and XScuWdt_Stop().
Referenced by main().