
ITA-8100 / ITA-8120 User Manual
18
3.3
Watchdog Sample Code
#include <cstdlib>
#include <sys/io.h>
#include <unistd.h>
#include <iostream>
using namespace std;
int OBF=0x01, IBF=0x02;
int wait_OBF(int Port)
{
int icount;
for(icount=0;icount<0xFF;+)
{
int iValue = inb(Port);
if((iValue&OBF) == 0x01)
return true;
usleep(1000);
}
cout << "wait_OBF failed\n";
cout.flush();
return false;
}
int wait_IBF(int Port)
{
int icount;
for(icount=0;icount<0xFF;+)
{
int iValue = inb(Port);
if((iValue&IBF) == 0x00)
return true;
usleep(1000);
}
cout << "wait_IBF failed\n";
cout.flush();
return false;
}
void DummyPort()
{
int iRet = inb(0x299);
wait_IBF(0x29A);
}
Summary of Contents for ITA-8100
Page 8: ...ITA 8100 ITA 8120 User Manual viii...
Page 15: ...Chapter 2 2 Connectors and Function Keys Introduction I O Connectors Bezel Key Mapping...
Page 20: ...ITA 8100 ITA 8120 User Manual 12...
Page 28: ...ITA 8100 ITA 8120 User Manual 20 StartWD usleep 5000000 StopWD return 0...
Page 29: ...Appendix A A Panel Mounting...
Page 30: ...ITA 8100 ITA 8120 User Manual 22 A 1 Panel Mounting M6x20L...