MSI MS-CF05-SKU1 User Manual page 66

Industrial computer board
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)
else
2.6
Clear WDT Reset Flag
val = Inportb (WDT_BASE + 0x05);
val = val | 0x40;
Outportb (WDT_BASE + 0x05, val);
66
GPIO WDT BKL Programming
printf ("timeout event occurred");
printf ("timeout event not occurred");
// 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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ms-cf05-sku2

Table of Contents