Copyright © 2015 NEXCOM International Co., Ltd. All Rights Reserved.
75
NISE 3700E Series User Manual
Appendix B: GPI/O Programming Guide
GPIO programming sample code
#define GPIO_PORT
0xA00
#define GPO4_HI
outportb(GP5, 0x10)
#define GPO4_LO
outportb(GP5, 0x00)
#define GPO6_HI
outportb(GP5, 0x20)
#define GPO6_LO
outportb(GP5, 0x00)
#define GPO8_HI
outportb(GP5, 0x40)
#define GPO8_LO
outportb(GP5, 0x00)
#define GPO10_HI
outportb(GP5, 0x80)
#define GPO10_LO
outportb(GP5, 0x00)
void main(void)
{
GPO4_HI;
GPO6_LO;
GPO8_HI;
GPO10_LO;
}