//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);

49

AppendixB

Page 61
Image 61
Intel TPC-1070 user manual AppendixB