
Appendix
104-1816CL2NA
- 43 -
outportb(INDEX_PORT, 0x07);
outportb(DATA_PORT, 0x08);
outportb(INDEX_PORT, 0x0f0);
read_temp = inportb(DATA_PORT);
if(temp) //if true, minute mode
{
read_temp = read_temp | bit3;
}else //else, second mode
{
read_temp = read_temp & (~bit3);
}
outportb(DATA_PORT, read_temp);
}
/*-------------------------------------------------*/
// Name:sio_wdt_restart_counter(int)
// Description: Used to clear wdt status
// Input: the time system to restart
// Output: none
/*-------------------------------------------------*/
void sio_wdt_restart_counter(int counter)
{
int temp = counter;
outportb(INDEX_PORT, 0x07);
outportb(DATA_PORT, 0x08);
outportb(INDEX_PORT, 0x0f1);
outportb(DATA_PORT, temp);
}