NEXCOM EBC 355 User Manual
Page 63
Copyright © 2014 NEXCOM International Co., Ltd. All Rights Reserved.
49
EBC 355 User Manual
Appendix B: GPI/O Programming Guide
GPIO programming sample code
#define GPIO_PORT1
0xA03
#define GPIO_PORT2
0xA02
#define GPIO_PORT3
0xA07
#define GPO0
(0x01 << 6)
#define GPO1
(0x01 << 5)
#define GPO2
(0x01 << 0)
#define GPO3
(0x01 << 1)
#define GPO0_HI
outportb(GPIO_PORT1, GPO0)
#define GPO0_LO
outportb(GPIO_PORT1, 0x00)
#define GPO1_HI
outportb(GPIO_PORT2, GPO1)
#define GPO1_LO
outportb(GPIO_PORT2, 0x00)
#define GPO2_HI
outportb(GPIO_PORT3, GPO2)
#define GPO2_LO
outportb(GPIO_PORT3, 0x00)
#define GPO3_HI
outportb(GPIO_PORT3, GPO3)
#define GPO3_LO
outportb(GPIO_PORT3, 0x00)
void main(void)
{
GPO0_HI;
GPO1_LO;
GPO2_HI;
GPO3_LO;
}
See also other documents in the category NEXCOM Hardware:
- EBC 352 (68 pages)
- EBC 353 (62 pages)
- EBC 354 (63 pages)
- ICES 268 (96 pages)
- ICES 667 (100 pages)
- ICES 254 (98 pages)
- NEX 604 (61 pages)
- NEX 608 (67 pages)
- ICES 668 (105 pages)
- NEX 607 (75 pages)
- NEX 609 (61 pages)
- NEX 611 (51 pages)
- NEX 613 (45 pages)
- NEX 617 (53 pages)
- NISE 101 (79 pages)
- NISE 104 (78 pages)
- NISE 2020 (84 pages)
- NISE 105A (78 pages)
- NISE 103 (83 pages)
- NISE 2110A (87 pages)
- NISE 2420 (84 pages)
- NISE 301 (74 pages)
- NISE 2310E (107 pages)
- NISE 2210E (110 pages)
- NISE 3100eP2 (75 pages)
- NISE 300 (95 pages)
- NISE 3140P2E (88 pages)
- NISE 3520P2E (125 pages)
- MAC 3500P2-GTS8 (120 pages)
- NISE 3600E (102 pages)
- NISE 3720P2E (85 pages)
- NISE 3640P2E (105 pages)
- NISE 3640M2E (108 pages)
- NISE 4000 (102 pages)
- nTUF 600 (100 pages)
- NEX 716VL2G (71 pages)
- NISE 4000P4E (128 pages)
- NISE 4000P2E (131 pages)
- NEX 732L2G (71 pages)
- NEX 883 (53 pages)
- NEX 890 (58 pages)
- NEX 980 (52 pages)
- NEX 852VL2 (62 pages)
- NEX 981 (47 pages)