Lanner LEC-7900 User Manual

Page 29

Advertising
background image

28

return 0;

}

//;********************* Exit SIO

*****************************************************

int Exit_Configuation()

{

outportb(INDEX_PORT, 0xaa);

//Exit

W83627THG Configuration

return 0;

}

//;********************* Init WDTO and SB GPIO

*****************************************************

int Init_WDTO_GPIO_Interface()

{

Enter_Configuation();

write_w83627UHG_reg(0x8, 0x30, 0x01);

//;enable LDN8

write_w83627UHG_reg(0x8, 0xf5, 0x00);

//;//;set second

write_w83627UHG_reg(0x8, 0xf6, 0x00);

//;LDN=8, CRF6, stop timer first

write_w83627UHG_reg(0x8, 0xf7, 0x00);

//;clear status bit

Exit_Configuation();

return 0;

}

//input: none

//output: 1 = not correct SuperIO

//

0 = correct SuperIO

int detect_sio(void)

{

//check the SuperIO version

if(read_w83627UHG_reg(0,CR20_REG)==W83627UHG_ID)

return 0;

else

return 1;

}

Advertising