AAEON AEC-6940 User Manual
Page 59
Advertising
E m b e d d e d C o n t r o l l e r
A E C - 6 9 4 0
Appendix A Programming the Watchdog Timer A-7
{
int
inputbuffer;
int index;
index=0;
while(index<0x800)
{
inputbuffer=inportb(SMBus_Port);
delay(10);
outportb(SMBus_Port,0x42);
delay(10);
if((inputbuffer&0x02)!=0)
return;
if((inputbuffer&(0xbf))==0)
return;
if((inputbuffer&0x04)==0)
return;
index++;
}
printf("\nDevice not ready!\n");
outportb(SMBus_Port,0xFF);
exit(0);
}
Advertising