bTemp = inbyte (WATCHDOG_STATCTL);
bTemp &= ~WD_ACTION_MASK;
/* set watchdog action to NMI */
bTemp |= WD_ACTION_NMI;
bTemp &= ~WD_SW_ENABLE;
/* software disable the watchdog */
outbyte (WATCHDOG_STATCTL, bTemp | WD_PAT_1);
/* set and pat twice */
outbyte (WATCHDOG_STATCTL, bTemp | WD_PAT_2);
outbyte (WATCHDOG_STATCTL, bTemp | WD_PAT_1);
} /* vDisableWatchdog () */
/*****************************************************************************
* vPatWatchdog: restart the watchdog to prevent timeout
*
* Bits 1:0 of the Watchdog status / control register are inverted before
* writing back.
*
* RETURNS: none
*/
void vPatWatchdog (void)
{
UINT8
bTemp;
UINT8
bPat;
bTemp = inbyte (WATCHDOG_STATCTL);
bPat = (~bTemp) & WD_PAT_MASK; /* get complement of bits 1:0 */
bTemp &= ~WD_PAT_MASK;
/* clear the bits 1:0 in data */
bTemp |= bPat;
/* set new bits */
outbyte (WATCHDOG_STATCTL, bTemp);
} /* vPatWatchdog () */
8-10
VP 110/01x
Additional Local I/O Functions
Summary of Contents for VP 110/01 Series
Page 18: ...This page has been left intentionally blank 1 6 VP 110 01x Introduction and Overview ...
Page 60: ...This page has been left intentionally blank 7 6 VP 110 01x Memory ...
Page 88: ...This page has been left intentionally blank 9 8 VP 110 01x PC BIOS ...
Page 122: ...This page has been left intentionally blank 11 28 VP 110 01x VSA Mode Diagnostics ...
Page 150: ...This page has been left intentionally blank B 8 VP 110 01x Breakout Modules ...