Watchdog Timer
71
NuPRO-A40H
Appendix A - Watchdog Timer
To use the Watchdog Timer on the NuPRO-A40H, first download
the WDT driver from the product page on the ADLINK website:
www.adlinktech.com/PD/web/PD_detail.php?cKind=&pid=1256
.
Install the driver by extracting the appropriate version for your
Windows operating system (32 or 64-bit), and copying it to the fol-
lowing location:
C:\Windows\System32\drivers
.
A sample program for configuring the NuPRO-A40H’s watchdog
timer is shown below.
A.1 Sample Code
#include <stdlib.h>
#include <float.h>
#include "Sema.h"
#include "SemaLog.h"
#include "ErrorCodes.h"
#include "Debug.h"
#include "Conv.h"
#include "dmi_info.h"
#include "Version.h"
#ifdef WIN32
#include <windows.h>
#else
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#endif
typedef struct
{
bool SetWatchdog;// Set/Reset/Disable watchdog?
word Watchdog;// Num of seconds for wdt to trigger
}tCmdLineArgs;
tCmdLineArgs CmdLineArgs;
char*
ExeName;
Содержание NuPRO-A40H
Страница 6: ...vi Preface This page intentionally left blank ...
Страница 9: ...Table of Contents ix NuPRO A40H Important Safety Instructions 83 Getting Service 85 ...
Страница 10: ...x Table of Contents This page intentionally left blank ...
Страница 12: ...xii List of Figures This page intentionally left blank ...
Страница 14: ...xiv List of Tables This page intentionally left blank ...
Страница 22: ...8 Introduction 1 6 Mechanical Drawing Figure 1 2 NuPRO A40H Board Dimensions ...
Страница 26: ...12 Introduction This page intentionally left blank ...
Страница 40: ...26 Hardware Information This page intentionally left blank ...
Страница 76: ...62 BIOS Setup Memory Configuration Memory Remap Enabled or Disable Memory remap above 4G ...
Страница 87: ...Watchdog Timer 73 NuPRO A40H PrintData CmdLineArgs Print requested data to console Sema_Close return 0 ...
Страница 88: ...74 Watchdog Timer This page intentionally left blank ...
Страница 96: ...82 System Resources This page intentionally left blank ...