IoTGateway/BSP/Android/Gettingstarted/How to use GPIO
From ESS-WIKI
Configuration/Test
Configuration
The i.MX 6 bank/bit notation for GPIOs must be formed as "GPIO<GPIO_bank>_IO<gpio_bit>"
The numeric value of GPIO is calculated as follows:
32 x (gpio_bank- 1) + gpio_bit
E.g. GPIO2_IO04 becomes 36
ROM-3421
ROM7420
GPIO Number | GPIO formed | Numeric Representation |
GPIO0 | GPIO6_IO11 | 171 |
GPIO1 |
GPIO6_IO14 | 174 |
GPIO2 |
GPIO6_IO15 |
175 |
GPIO3 |
GPIO6_IO16 | 176 |
GPIO4 |
GPIO2_IO25 |
57 |
GPIO5 |
GPIO2_IO23 |
55 |
GPIO6 |
GPIO2_IO24 |
56 |
GPIO7 |
GPIO5_IO02 |
130 |