Advantech TPC-1260H User Manual page 67

Crusoe 5800 touch panel computer with high-luminance 12.1î svga tft lcd display
Table of Contents

Advertisement

// Set the Watchdog Timer as 10 seconds. Number 2 means 10 seconds.
DeviceIoControl(m_hWDT, IOCTL_WDT_SET_TIMEOUT, &nIndex,
sizeof(nIndex), NULL, 0, &dwTemp, NULL);
// Enable the Watchdog timer
DeviceIoControl(m_hWDT, IOCTL_WDT_ENABLE, NULL, 0, NULL,
0, &dwTemp, NULL);
While (1) {
// do your job here.
Sleep(8000);
DeviceIoControl(m_hWDT, IOCTL_WDT_STROBE, NULL,0,
NULL, 0, &dwTemp, NULL);
}
DeviceIoControl(m_hWDT, IOCTL_WDT_DISABLE, NULL, , NULL,
0, &dwTemp, NULL);
CloseHandle(m_hWDT);
55
Appendix C

Advertisement

Table of Contents
loading

Table of Contents