AR-B1893CM6C User’s Guide
AR-B1893CM6C Celeron M inside
with DDR SO DIMM, 4 Port built in LAN, 1 Mini PCI, 1 CF
37
gotoxy(x,y);
printf(" "); //clear the line :)
gotoxy(x,y);
printf(" %ld\tseconds",waiting_sec);
waiting_sec = waiting_sec - 1;
delay(1000);
}
printf("Error!! Watchdog not function!\n"); //won't be displayed
close_superio();
}
/* get time_unit and time_out from user input */
void get_wdog_time(char *timestr)
{
int tmp;
tmp=strlen(timestr);
if( (timestr[tmp] == 'm') || (timestr[tmp] == 'M') ) {
time_unit=1;
}
timestr[tmp]='\0';
tmp=atoi(timestr);
if(tmp != 0) {
if(tmp >255) {
tmp=255;
}
time_out=tmp;
}
}
/* prepare superio for watchdog function */
void prepare_superio()
{
byte tmp;
outportb(config_port,0x87); //enter configuration mode
outportb(config_port,0x87);
outportb(config_port,0x2B); //CR2B - GPIO multiplexed pin