
Watchdog Timer (WDT) Function Library
99
MXC-6300
outp(0x2E, regoffset);
outp(0x2F, data);
}
main(void)
{
unsigned int count;
/* print program title */
printf("-----------------MXC-6300 WDT Demo------------
-----\n");
printf("Init and config GPIO
ports<<<<<<<<<<<<<<<<<<<<<<<<<\n");
printf("----------------------------------------------
-----\n");
EnterConfig();
/* config WDT registers */
w_reg(0x07,0x08);
w_reg(0x30,0x01);
w_reg(0xF5,0x00);
w_reg(0xF7,0x00);
/* enable keyboard interrupt to reset WDT timeout
value */
w_reg(0xF7,r_reg(0xF7)|0x40);
/* set unit as second */
w_reg(0xF5,r_reg(0xF5)&0xF7);
/* enable reset when timeout */
w_reg(0xF5,r_reg(0xF5)|0x02);
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...