NEXCOM APPC 1230T User Manual
Page 123
Copyright © 2012 NEXCOM International Co., Ltd. All Rights Reserved.
107
APPC 1230T/1231T/1235T/1530T/1531T/1730T/1731T/1930T/1931T User Manual
Appendix A: GPI/O Programming Guide
GPIO programming sample code
#define GPIO_PORT
0xA04
#define GPO7
(0x01 <<2)
#define GPO8
(0x01 <<3)
#define GPO7_HI
outportb(GPIO_PORT, 0x04)
#define GPO7_LO
outportb(GPIO_PORT, 0x00)
#define GPO8_HI
outportb(GPIO_PORT, 0x08)
#define GPO8_LO
outportb(GPIO_PORT, 0x00)
void main(void)
{
GPO7_HI;
GPO8_LO;
}
This manual is related to the following products: