www.pudn.com > vxworks0108.rar > watchdog.h
#ifndef __WATCHDOG_H__ #define __WATCHDOG_H__ /* #define WATCHDOG_BASEADRESS 0x80000160 */ #define WATCHDOG_BASEADRESS VG4_PORT_WCR /* in vg4.h */ /* control register defines */ #define WD_ON 0x01 #define WD_SET 0x02 #define WD_RES 0x04 /* Clock Select register defines, VG4 rev. > 1.x */ #define WD_TO_296MS 0x00 #define WD_TO_593MS 0x01 /* default, 593 milliseconds */ #define WD_TO_1186MS 0x02 #define WD_TO_2373MS 0x03 #define RESET_BY_WD 0x01 #define RESET_NORMAL 0x02 void watchdogStart( void ); void watchdogStop( void ); void watchdogRetrigger( void ); int watchdogReadBootStatus( void ); void watchdogClearBootStatus( void ); UINT32 watchdogTimeoutGet( void ); STATUS watchdogTimeoutSet( int ); #endif /* __WATCHDOG_H__ */