
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
Summary of Contents for MXC-6300
Page 10: ...x List of Tables This page intentionally left blank PRELIM INARY...
Page 12: ...xii List of Figures This page intentionally left blank PRELIM INARY...
Page 20: ...8 Introduction Figure 1 3 MXC 6300 Top View Figure 1 4 MXC 6300 Front View 174 2 PRELIM INARY...
Page 46: ...34 Introduction This page intentionally left blank PRELIM INARY...
Page 57: ...Getting Started 45 MXC 6300 5 Remove the external CF socket cover PRELIM INARY...
Page 67: ...Getting Started 55 MXC 6300 PRELIM INARY...
Page 68: ...56 Getting Started This page intentionally left blank PRELIM INARY...
Page 94: ...82 BIOS Setup PRELIM INARY...
Page 97: ...Activating RAID Function 85 MXC 6300 PRELIM INARY...
Page 106: ...94 Activating RAID Function PRELIM INARY...
Page 124: ...112 Digital Input Output Function Library This page intentionally left blank PRELIM INARY...