/******************************************************************************* | |
* Copyright (C) 2007, ZTE Corporation. | |
* | |
* File Name: hal_wdt.c | |
* File Mark: | |
* Description: watchdog hal interface header file | |
* Others: | |
* Version: | |
* Author: limeifeng | |
* Date: 2014.05.21 | |
* History 1: | |
* Date: | |
* Version: | |
* Author: | |
* Modification: | |
* History 2: | |
******************************************************************************/ | |
#ifndef DRVS_WDT_H | |
#define DRVS_WDT_H | |
/**************************************************************************** | |
* Include files | |
****************************************************************************/ | |
/**************************************************************************** | |
* Local Macros | |
****************************************************************************/ | |
/**************************************************************************** | |
* Local Types | |
****************************************************************************/ | |
typedef VOID (*wdt_func)(VOID); | |
/**************************************************************************** | |
* Local Constants | |
****************************************************************************/ | |
/**************************************************************************** | |
* Local Function Prototypes | |
****************************************************************************/ | |
/**************************************************************************** | |
* Global Constants | |
****************************************************************************/ | |
/**************************************************************************** | |
* Global Variables | |
****************************************************************************/ | |
/**************************************************************************** | |
* Global Function Prototypes | |
****************************************************************************/ | |
/**************************************************************************** | |
* Function Definitions | |
****************************************************************************/ | |
/******************************************************************************* | |
* Function: zDrvWdt_Start | |
* Description:Start watchdog | |
* Parameters: | |
* Input: | |
* | |
* Output: | |
* | |
* Returns: | |
* | |
* | |
* Others: | |
********************************************************************************/ | |
//VOID zDrvWdt_Start(VOID); | |
/******************************************************************************* | |
* Function: zDrvWdt_Stop | |
* Description: stop watchdog | |
* Parameters: | |
* Input: | |
* | |
* Output: | |
* | |
* Returns: | |
* | |
* | |
* Others: | |
********************************************************************************/ | |
VOID zDrvWdt_Stop(VOID); | |
/******************************************************************************* | |
* Function: zDrvWdt_GetValue | |
* Description: get watchdog current counter value | |
* Parameters: | |
* Input: | |
* | |
* Output: | |
* | |
* Returns: watchdog current counter value | |
* | |
* | |
* Others: | |
********************************************************************************/ | |
//UINT32 zDrvWdt_GetValue(void); | |
/******************************************************************************* | |
* Function: zDrvWdt_FeedDog | |
* Description:Feed watchdog | |
* Parameters: | |
* Input: value: 0x0--0xffff | |
* | |
* Output: | |
* | |
* Returns: | |
* | |
* | |
* Others: | |
********************************************************************************/ | |
//void zDrvWdt_FeedDog(UINT32 value); | |
/******************************************************************************* | |
* Function: zDrvWdt_Initiate | |
* Description: watchdog initiate | |
* Parameters: | |
* Input: | |
* | |
* Output: | |
* | |
* Returns: | |
* | |
* | |
* Others: | |
********************************************************************************/ | |
SINT32 zDrvWdt_Initiate(void); | |
void zDrvWdt_Handle_After_Psm(void); | |
void zDrvWdt_Handle_Before_Psm(void); | |
SINT32 zDrvWdt_Register_Handle(wdt_func func, UINT32 interval, bool wakeup, char *handle_name); | |
SINT32 zDrvWdt_Set_WdtNv(BOOL NvFlag); | |
#endif | |