ADLINK cPCI-6210 User Manual
Page 84
70
Utilities
outportb(IT8783_ioPort, 0xC5);
registerValue = inportb(IT8783_ioPort +
1);
registerValue &= 0xfe; // set GP60
is alternate function
outportb(IT8783_ioPort+1, registerValue);
outportb(IT8783_ioPort, 0xCD);
registerValue = inportb(IT8783_ioPort +
1);
registerValue |= 0x01; // set
GP60 is output
outportb(IT8783_ioPort+1, registerValue);
outportb(IT8783_ioPort, 0xf8);
outportb(IT8783_ioPort+1, 0x30); /
/ PLED mapping to GP60
outportb(IT8783_ioPort, 0xf9);
registerValue = inportb(IT8783_ioPort +
1);
registerValue |= 0x02;
registerValue &= 0xfb;
outportb(IT8783_ioPort+1, registerValue);
}
outportb(IT8783_ioPort, 0x71);
registerValue = inportb(IT8783_ioPort + 1);
registerValue |= 0xD0; // set
Mouse & Keyboard interrupt Enable
outportb(IT8783_ioPort+1, registerValue);
outportb(IT8783_ioPort, 0x73);
outportb(IT8783_ioPort+1, count_value); // set
WDT count LSB
tempCount = tempCount >> 8;
outportb(IT8783_ioPort, 0x74);
outportb(IT8783_ioPort+1, count_value); // set
WDT count MSB
if(count_value >= 60)
{
outportb(IT8783_ioPort, 0x72);
registerValue = inportb(IT8783_ioPort+1);