User`s manual

98 Watchdog Timer (WDT) Function Library
D.2 WDT with DOS/Linux
Under Linux, please program WDT function using the same LPC
IO registers according to the sample program as follows.
#include <dos.h>
#include <stddef.h>
#include <stdio.h>
/* Config LPC IO to enter config mode */
EnterConfig(void)
{
outp(0x2E, 0x87);
outp(0x2E, 0x87);
}
/* Config LPC IO to exit config mode */
ExitConfig(void)
{
outp(0x2E, 0xAA);
}
/* Read byte from LPC IO register */
unsigned char r_reg(unsigned char regoffset)
{
outp(0x2E, regoffset);
return inp(0x2F);
}
/* Write byte to LPC IO register */
void w_reg(unsigned char regoffset, unsigned char
data)
{
PRELIMINARY