IPC972 Series U
ser’s Manual
Watchdog Timer
83
Appendix A
Watchdog Timer
A.1
About Watchdog Timer
Software stability is major issue in most application. Some embedded systems are not watched
by human for 24 hours. It is usually too slow to wait for someone to reboot when computer
hangs. The systems need to be able to reset automatically when things go wrong. The
watchdog timer gives us solution.
The watchdog timer is a counter that triggers a system reset when it counts down to zero from
a preset value. The software starts counter with an initial value and must reset it periodically. If
the counter ever reaches zero which means the software has crashed, the system will reboot.
A.2
Sample Program
#include
"stdafx.h"
#include
<windows.h>
#include
<stdio.h>
#include
<tchar.h>
#include
<stdlib.h>
#ifdef
_DEBUG
#define
new
DEBUG_NEW
#endif
#pragma
comment
(
lib
,
"User32.lib"
)
#define
IDT_TIMER
WM_USER
+ 200
#define
_CRT_SECURE_NO_WARNINGS
1
#define
setbit
(value,x) (value |=(1<<x))
#define
clrbit
(value,x) (value &=~(1<<x))
HINSTANCE
hinstLibDLL =
NULL
;
LONG
WDTDATA = 0;
Содержание IPC972
Страница 1: ...IPC972 Industrial Computer User s Manual...
Страница 16: ...IPC972 Series User s Manual 8 Introduction IPC972 system w optional 5G antenna bracket...
Страница 66: ...IPC972 Series User s Manual 58 AMI BIOS UTILITY...
Страница 68: ...IPC972 Series User s Manual 60 AMI BIOS UTILITY CSM Configuration...
Страница 69: ...IPC972 Series User s Manual AMI BIOS UTILITY 61 Hardware Monitor This screen monitors hardware health...
Страница 70: ...IPC972 Series User s Manual 62 AMI BIOS UTILITY PCH FW Configuration Display ME firmware information...
Страница 78: ...IPC972 Series User s Manual 70 AMI BIOS UTILITY...
Страница 83: ...IPC972 Series User s Manual AMI BIOS UTILITY 75 HD Audio Configuration...
Страница 84: ...IPC972 Series User s Manual 76 AMI BIOS UTILITY PCI Express Configuration...
Страница 85: ...IPC972 Series User s Manual AMI BIOS UTILITY 77 USB Configuration...
Страница 90: ...IPC972 Series User s Manual 82 AMI BIOS UTILITY This page is intentionally left blank...