Page | 110
6.
Read corresponding IRQ number of the GPIO pins;
DWORD id = 0, irq = 0;
DeviceIoControl(hFile, IOCTL_GPIO_GETIRQ, &id, sizeof(DWORD),
&irq, sizeof(DWORD), NULL, NULL);
Id
is the GPIO pin number;
irq
returns its IRQ number;
7.
Disable the GPIO device;
CloseHandle(hFile);
Note:
GPIO pin definitions: 0~191 MPU Bank1~6 GPIO pin, 192~209 TPS65930
GPIO 0~17.
GPIO pins 0~191 must be defined as GPIO in both xldr/platform.c and
oalib/oem_pinmux.c.
GPIO interrupt mode is used by drivers, but not applications.
Summary of Contents for SBC8140
Page 1: ...SBC8140 Single Board Computer User Manual Version 1 1 22nd Jan 2014...
Page 12: ...Page 6 1 4 Interfaces on the SBC8140 Figure 4 SBC8140 Interfaces...
Page 13: ...Page 7 1 5 System Block Diagram Figure 5 SBC8140 system block diagram...
Page 15: ...Page 9 1 6 2 Expansion Board Figure 8 Expansion board dimensions...
Page 128: ...Page 122...
Page 131: ...Page 125...
Page 139: ...Page 133 Appendix 5 FAQ Please visit http www elinux org SBC8600_FAQ...