Software Drivers

xscuwdt.c File Reference


Detailed Description

Contains the implementation of interface functions of the XScuWdt driver. See xscuwdt.h for a description of the driver.

 MODIFICATION HISTORY:

 Ver   Who Date     Changes
 ----- --- -------- ---------------------------------------------
 1.00a sdm 01/15/10 First release
 

#include "xscuwdt.h"

Functions

int XScuWdt_CfgInitialize (XScuWdt *InstancePtr, XScuWdt_Config *ConfigPtr, u32 EffectiveAddress)
void XScuWdt_Start (XScuWdt *InstancePtr)
void XScuWdt_Stop (XScuWdt *InstancePtr)


Function Documentation

int XScuWdt_CfgInitialize XScuWdt InstancePtr,
XScuWdt_Config ConfigPtr,
u32  EffectiveAddress
 

Initialize a specific watchdog timer instance/driver. This function must be called before other functions of the driver are called.

Parameters:
InstancePtr is a pointer to the XScuWdt instance.
ConfigPtr is the config structure.
EffectiveAddress is the base address for the device. It could be a virtual address if address translation is supported in the system, otherwise it is the physical address.
Returns:
  • XST_SUCCESS if initialization was successful.
  • XST_DEVICE_IS_STARTED if the device has already been started.
Note:
This function enables the watchdog mode.

void XScuWdt_Start XScuWdt InstancePtr  ) 
 

Start the watchdog counter of the device.

Parameters:
InstancePtr is a pointer to the XScuWdt instance.
Returns:
None.
Note:
User needs to select the appropriate mode (watchdog/timer) before using this API. See XScuWdt_SetWdMode/XScuWdt_SetTimerMode macros in xscuwdt.h.

void XScuWdt_Stop XScuWdt InstancePtr  ) 
 

Stop the watchdog timer.

Parameters:
InstancePtr is a pointer to the XScuWdt instance.
Returns:
None.
Note:
None.
Copyright @ 1995-2014 Xilinx, Inc. All rights reserved.