![ADLINK Technology MXC-6401D User Manual Download Page 106](http://html1.mh-extra.com/html/adlink-technology/mxc-6401d/mxc-6401d_user-manual_2852716106.webp)
PRELIMINARY
92
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 ITE8783 to enter config mode */
EnterConfig(void)
{
outp(0x2E, 0x87);
outp(0x2E, 0x01);
outp(0x2E, 0x55);
outp(0x2E, 0x55);}
/* Config LPC IO to exit config mode */
ExitConfig(void)
{
outp(0x2E, 0x02);
outp(0x2F, 0x02);
}
/* 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 */
Summary of Contents for MXC-6401D
Page 10: ...P R E L I M I N A R Y x Table of Contents This page intentionally left blank ...
Page 12: ...P R E L I M I N A R Y xii List of Tables This page intentionally left blank ...
Page 14: ...P R E L I M I N A R Y xiv List of Figures This page intentionally left blank ...
Page 22: ...P R E L I M I N A R Y 8 Introduction Figure 1 4 MXC 6400 Front View 200 ...
Page 56: ...P R E L I M I N A R Y 42 Getting Started 2 Withdraw one or both of the SATA trays ...
Page 58: ...P R E L I M I N A R Y 44 Getting Started ...
Page 63: ...P R E L I M I N A R Y Getting Started 49 MXC 6400 ...
Page 102: ...P R E L I M I N A R Y 88 Activating RAID Function This page intentionally left blank ...
Page 122: ...P R E L I M I N A R Y 108 Important Safety Instructions This page intentionally left blank ...