
User’s Manual
47
5.1 WDT Function
WDT Set Example
#include <stdio.h>
#include "stdafx.h"
#include <windows.h>
typedef int(_stdcall *IpMyin)(int);
typedef int(_stdcall *IpMyout)(int,int);
void set_watchdog(int time)
{
HINSTANCE hDll;
IpMyin Myin;
IpMyout Myout;
hDll = LoadLibrary(_T("inpout32.dll"));
if (hDll != NULL)
{
Myin = (IpMyin)GetProcAddress(hDll, "Inp32");
Myout = (IpMyout)GetProcAddress(hDll, "Out32");
if (Myin != NULL)
{
Myout(0x4e,0x87);
Myout(0x4e,0x87); //unlock
Myout(0x4e,0x2b);
Myout(0x4f,0xc0); //select logical device
Myout(0x4e,0x7);
Myout(0x4f,0x8);
//select logical device
Myout(0x4e,0x30);
Myout(0x4f,0x01); //Set Watch Dog Timer Activate
Myout(0x4e,0xf5);
Myout(0x4f,0x0);
//set second
Содержание FEBC-3158
Страница 2: ...User s Manual 2 Version Note No Ver Note Date Writer 1 A1 0 first publish 20151106 Colin Cheng ...
Страница 8: ...User s Manual 1 General Information CHAPTER 1 ...
Страница 11: ...User s Manual 4 FEBC 3158 S001 Dimensions Uint mm Figure 1 1 ...
Страница 12: ...User s Manual 5 Hardware Installation CHAPTER 2 ...
Страница 17: ...User s Manual 10 2 4 I O indication Front view Rear view Figure 2 14 ...
Страница 24: ...User s Manual 17 Figure 2 24 Figure 2 25 ...
Страница 28: ...User s Manual 21 BIOS Setup CHAPTER 3 ...
Страница 50: ...User s Manual 43 Driver Installation CHAPTER 4 ...
Страница 53: ...User s Manual 46 SYSTEM RESOURCE CHAPTER 5 ...
Страница 64: ...User s Manual 57 m_ButtonLED5 LedOff ...