Fpc 7619 – Acnodes FPC 7619 User Manual

Page 58

Advertising
background image

FPC 7619

19 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







//Start the super I/O chip programming

ENTERPRG

//Select the logical device 8, GP6

SELETDEV(8)

//Write GP1 value

WRITEREG(0xE5, cGP6)

//Exit the super I/O chip programming

EXITPRG

return 0;

}

int main() {

unsigned char cGP;

//Initialize the GPIO port

InitGP2();

InitGP6();

//Read GPIO Port 2

cGP = ReadGP2();

printf("\nRead GPIO Port 2 Status: %X", cGP);

//Write GPIO Port 6

WriteGP6(cGP);

printf("\nSet GPIO Port 6 Status: %X", cGP);

return 0;

Advertising