MSI MS-C903 User Manual page 63

Industrial data machine
Table of Contents

Advertisement

2.4 Disable WDT
val = Inportb (WDT_BASE + 0x05);
val = val & 0xDF;
Outportb (WDT_BASE + 0x05, val);
2.5 Check WDT Reset Flag
If the system has been reset by WDT function, this flag will set to 1.
val = Inportb (WDT_BASE + 0x05);
val = val & 0x40;
if (val)
printf ("timeout event occurred");
else
printf ("timeout event not occurred");
2.6 Clear WDT Reset Flag
val = Inportb (WDT_BASE + 0x05);
val = val | 0x40;
Outportb (WDT_BASE + 0x05, val);
// Read current WDT setting
// Disable WDT by set WD_EN (bit 5) to 0.
// Write back WDT setting.
// Read current WDT setting.
// Check WDTMOUT_STS (bit 6).
// Read current WDT setting
// Set 1 to WDTMOUT_STS (bit 6);
// Write back WDT setting
GPIO WDT BKL SMBus Programming
63

Advertisement

Table of Contents
loading

Table of Contents