gd_wdog.h 1.5 KB
Newer Older
G
gokemicro 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
/******************************************************************************
**
** \file      gd_wdog.h
**
** \brief     DEMO test application.
**
**            (C) Goke Microelectronics China 2002 - 2007
**
** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
**            ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
**            OMMISSIONS.
**
** \version   \$Id: gd_wdog.h,v 1.8 2007/01/04 15:13:22 mneuma Exp $
**
******************************************************************************/

#ifndef _GD_WDOG_H_
#define _GD_WDOG_H_
#include <gtypes.h>
#include <gmodids.h>


//*****************************************************************************
//*****************************************************************************
//** Defines and Macros
//*****************************************************************************
//*****************************************************************************
#define GD_WDOG_INTENABLE  0x05
#define GD_WDOG_RSTENABLE  0x03

#ifdef __cplusplus
extern "C" {
#endif
GERR GD_Wdog_Init(void);
GERR GD_Wdog_Enable(U32 index);
GERR GD_Wdog_En_Enable(void);
GERR GD_Wdog_Int_Enable(void);
GERR GD_Wdog_Rest_Enable(void);
GERR GD_Wdog_Disable(void);
GERR GD_Wdog_En_Disable(void);
GERR GD_Wdog_Int_Disable(void);
GERR GD_Wdog_Rest_Disable(void);
GERR GD_Wdog_ClrTimeout(void);
GERR GD_Wdog_GetTimeout(void);
GERR GD_Wdog_GetValue(void);
GERR GD_Wdog_LoadValue(U32 index);
GERR GD_Wdog_Enable_Reset(void);

#ifdef __cplusplus
}
#endif



#endif /* _GD_WDOG_H_ */