beautypg.com

ADLINK cPCI-6520 User Manual

Page 75

background image

Utilities

63

cPCI-6520

registerValue = inportb(W83627UHG_ioPort+1);

registerValue |= 0x08; // set GPIO23 is High

outportb(W83627UHG_ioPort+1, registerValue);

printf("WDT is Disabled.\n");

}

outportb(W83627UHG_ioPort, 0x07);

outportb(W83627UHG_ioPort+1, 8); // CR07 set Logical

Device 8

outportb(W83627UHG_ioPort, 0xf6);

outportb(W83627UHG_ioPort+1, tempCount); // set WDT

count value..

}

void Exit_W83627UHG_Config(unsigned int flag)

{

if(flag) W83627UHG_ioPort = 0x4e;

outportb(W83627UHG_ioPort, 0xaa);