beautypg.com

Pch 7591 – Acnodes PCH 7591 User Manual

Page 66

background image

PCH 7591

15 inch Atom Fanless Panel PC

© Copyright 2012 Acnodes, Inc.

All rights reserved. Product description and product specifications
are subject to change without notice. For latest product information,
please visit Acnodes’ web site at www.acnodes.com.

14628 Central Ave.

Chino, CA91710

Tel:909.597.7588, Fax:909.597.1939






//E xit the s uper I/O chip programm ing

E XITP RG

return cGP 2;

}

//I nitialize the GPIO port6

i nt InitGP 6() {

//Start the super I/O chip programming

E NTE RP RG

//S elect the lo gi cal devic e 8, GP6

S EL ETDE V(8)

//A ctivate G P1

W RITE RE G(0x30, (inportb(0x3 0)|0x4))

W RITE RE G(0xE6, 0 x0)

W RITE RE G(0xE4, 0 xF0)

//E xit the s uper I/O chip programm ing

E XITP RG

return 0;

}

// Read GP IO P ort2

u nsigned char ReadGP 2() {

uns igned char cGP 2;

//Start the super I/O chip programming

E NTE RP RG

//S elect the lo gi cal devic e 9, GP2