
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);
}
Содержание ITA-8100
Страница 8: ...ITA 8100 ITA 8120 User Manual viii...
Страница 15: ...Chapter 2 2 Connectors and Function Keys Introduction I O Connectors Bezel Key Mapping...
Страница 20: ...ITA 8100 ITA 8120 User Manual 12...
Страница 28: ...ITA 8100 ITA 8120 User Manual 20 StartWD usleep 5000000 StopWD return 0...
Страница 29: ...Appendix A A Panel Mounting...
Страница 30: ...ITA 8100 ITA 8120 User Manual 22 A 1 Panel Mounting M6x20L...
Страница 31: ...Appendix B B DC Power Connection...