63
ITA-460 User Manual
Ap
pe
nd
ix A
W
atc
hd
og
T
im
er
Table A.2: Watchdog (Warm Reset) 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);
}
count<< “Wait_OBF failed\n”;
count.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-460 Series
Page 8: ...ITA 460 User Manual viii ...
Page 12: ...ITA 460 User Manual xii ...
Page 18: ...ITA 460 User Manual 6 ...
Page 19: ...Chapter 2 2 H W Installation Introduction Jumpers and Connectors I O Connectors ...
Page 36: ...ITA 460 User Manual 24 ...
Page 37: ...Chapter 4 4 BIOS Settings ...
Page 71: ...Chapter 5 5 Driver Installation Introduction Windows Driver Setup ...
Page 73: ...Appendix A A Watchdog Timer ...
Page 77: ...Appendix B B BSMI RoHS Declaration ...
Page 79: ...Appendix C C Chinese Language Safety Instructions and Battery Information ...