⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wdt.h

📁 ZLG MINIARM-N20源代码
💻 H
字号:
/****************************************Copyright (c)****************************************************
**                         Guangzhou ZHIYUAN electronics Co.,LTD.                               
**                                     
**                               http://www.embedtools.com
**
**--------------File Info---------------------------------------------------------------------------------
**  File name:      WDT.h
**  Last Date:
**  Last Version:   V1.0
**  Descriptions:   LPC2220 WDT驱动
**
**--------------------------------------------------------------------------------------------------------
** Created by:      Liu Weifeng
** Created date:    2007-08-10
** Version:         V1.0
** Descriptions:
**
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
*********************************************************************************************************/
#ifndef _WDT_H_
#define _WDT_H_

#ifdef __cplusplus
extern "C" {
#endif									                                /*  __cplusplus				    */

/*********************************************************************************************************
  WDT 相关索引
*********************************************************************************************************/
#define WDT0                0            								/*  WDT的ID号					*/

#define WDT0_IRQ_CHN        0            								/*  WDT中断通道号				*/

/*********************************************************************************************************
** Function name:       WDTInit
** Descriptions:        WDT初始化 
** input parameters:    ID -〉子设备号
**                      arg-〉初始化参数,使用字符串指针传入		  
** output parameters:   OPERATE_SUCCESS: 成功
**                      OPERATE_FAIL: 失败
*********************************************************************************************************/
extern int32 WDTInit (uint32 ID, 
                      char  *arg, 
                      void  *Rsv);

/*********************************************************************************************************
** Function name:       WDTFeed
** Descriptions:        对看门狗进行馈送操作
** input parameters:    None
** output parameters:   None
*********************************************************************************************************/  
extern int32 WDTFeed (uint32 ID);

/*********************************************************************************************************
** Function name:       WDT_ISR
** Descriptions:        看门狗中断响应函数
** input parameters:    None
** output parameters:   None
** Returned value:      None
*********************************************************************************************************/
extern void WDTISR (uint32 ID);

__inline void WDT0_ISR (void)
{
    /*
     *  以下可添加用户程序
     */	
      
	WDTISR (WDT0);
	VICVectAddr = 0x00;	
}
#ifdef __cplusplus 
	}
#endif 									                                /*  __cplusplus				    */

#endif 									                                /*  _WDT_H_  				    */
/*********************************************************************************************************
  END FILE
*********************************************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -