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

📄 syswdog.h

📁 au1500开发的应用程序
💻 H
字号:
/* sysWdog.h - hardware watchdog header file */

/* Copyright 2002-2004 Founder Communications, Inc. */

/*
modification history
--------------------
01a,17mar05,fhchen  written
*/

/*
DESCRIPTION

Head file for hardware watchdog driver. On V100R001CPE board MAX706s and
MAX6369 are connected to nRESETIN and GPIO207 of AU1500.

*/

#ifndef __INCsysWdogh
#define __INCsysWdogh

#ifdef __cplusplus
extern "C" {
#endif

#include <vxWorks.h>
#include <sysLib.h>    
#include "sysGpio.h"

/* constants */

#define WDG_PORT                PORT_PRIMARY /* port watchdog WDI connected to */    
#define WDG_PIN_WDI		GPIO207       /* pin used to feed the watchdog */
#define WDG_LOGIC_FEED		LOGIC_LOW    /* logic level to feed */
#define WDG_TIMEOUT		(160 * sysClkRateGet() / 100) /* timeout value of MAX706 */

#define WDG_TASK_NAME		"tWatchdog"  /* watchdog task name */
#define WDG_TASK_PRIO		20           /* watchdog task priority */
#define WDG_TASK_STACK_SIZE	500       /* watchdog task stack size in byte */
    
/* interface */
    
extern STATUS sysWdgDisable(void);           /* disable the hardware watchdog */
extern STATUS sysWdgEnable(void);            /* enable the hardware watchdog */
extern STATUS sysWdgStart(void);  /* enable the watchdog and start the feeder */
extern void wdgTaskEntry(void);   /* task feeding the watchdog */
/* extern void sysWdgFeed(void); */
#define sysWdgFeed()	(sysGpioWrite(WDG_PORT, WDG_PIN_WDI, WDG_LOGIC_FEED)) /* routine to feed once */

#ifdef __cplusplus
}
#endif

#endif	/* __INCsysWdogh */    

⌨️ 快捷键说明

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