PRELIMINARY
Watchdog Timer (WDT) Function Library
93
MXC-6400
void w_reg(unsigned char regoffset, unsigned char
data)
{
outp(0x2E, regoffset);
outp(0x2F, data);
}
main(void)
{
unsigned int count;
/* print program title */
printf("-----------------MXC-6400 WDT Demo------------
-----\n");
printf("Init and config GPIO
ports<<<<<<<<<<<<<<<<<<<<<<<<<\n");
printf("----------------------------------------------
-----\n");
EnterConfig();
/* config WDT registers */
w_reg(0x07,0x07);
/* enable keyboard interrupt to reset WDT timeout
value */
w_reg(0x71,r_reg(0x71)|0x20);
/* set unit as second */
w_reg(0x72,r_reg(0x72)|0x80);
/* enable reset when timeout */
w_reg(0x72,r_reg(0x72)|0x40);
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 ...