User manual

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.