Advantech TPC-31 User Manual page 53

3.5"/ 5.7" qvga tft lcd ti cortex-a8 touch panel computer
Table of Contents

Advertisement

DebugMsg(CString("WDT driver fail"));
return;
}
DWORD dwTemp;
DWORD nIndex=2;
// 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);
43
TPC-31/61 User Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tpc-61Tpc-31tTpc-61t

Table of Contents