eBOX671A Series u
ser’s Manual
64
Watchdog Timer
LONG WDTDATA = 0;
typedef ULONG(*LPFNDLLGETIOSPACE)(ULONG);
LPFNDLLGETIOSPACE lpFnDll_Get_IO;
typedef void(*LPFNDLLSETIOSPACE)(ULONG, ULONG);
LPFNDLLSETIOSPACE lpFnDll_Set_IO;
int _tmain(int argc, _TCHAR* argv[])
{
int unit = 0;
int WDTtimer = 0;
if (hinstLibDLL == NULL)
{
hinstLibDLL = LoadLibrary(TEXT("diodll.dll"));
if (hinstLibDLL == NULL)
{
//MessageBox("Load diodll dll error", "", MB_OK);
}
}
if (hinstLibDLL)
{
lpFnDll_Get_IO = (LPFNDLLGETIOSPACE)GetProcAddress(GetModuleHandle("diodll.dll"),
"GetIoSpaceByte");
lpFnDll_Set_IO = (LPFNDLLSETIOSPACE)GetProcAddress(GetModuleHandle("diodll.dll"),
"SetIoSpaceByte");
}
printf("Input Watch Dog Timer type, 1:Second ; 2:Minute :");
scanf("%d",&unit);
printf("\nInput Timer to countdown:");
scanf("%d", &WDTtimer);
printf("Start to countdown...");
//==Enter MB Pnp Mode==
lpFnDll_Set_IO(0x2e, 0x87);
lpFnDll_Set_IO(0x2e, 0x87);
lpFnDll_Set_IO(0x2e, 0x07);
lpFnDll_Set_IO(0x2f, 0x07); //SET LDN 07
Содержание eBOX671A Series
Страница 1: ...eBOX671A Series Embedded System User s Manual ...
Страница 49: ...eBOX671A Series user s Manual BIOS Setup Utility 41 Serial Port 1 Serial Port 2 ...
Страница 50: ...eBOX671A Series user s Manual 42 BIOS Setup Utility Serial Port 3 Serial Port 4 ...
Страница 56: ...eBOX671A Series user s Manual 48 BIOS Setup Utility ...
Страница 57: ...eBOX671A Series user s Manual BIOS Setup Utility 49 ...
Страница 70: ...eBOX671A Series user s Manual 62 BIOS Setup Utility This page is intentionally left blank ...
Страница 74: ...eBOX671A Series user s Manual 66 Programmable LED This page is intentionally left blank ...