Advantech TPC-650H User Manual page 41

5.7" vga tft lcd intel atom touch panel computer
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);
33
Appendix C

Advertisement

Table of Contents
loading

Table of Contents