[riot-notifications] [RIOT-OS/RIOT] cpu/esp32: GPIO macro cleanup in periph_cpu.h (#10662)

Gunar Schorcht notifications at github.com
Wed Jan 16 17:24:21 CET 2019

> that's only partly right, I think - because for most other CPUs there is at least some relationship and order of the GPIO PIN number and the corresponding pin on the CPU, i.e. GPIO0 < GPIO1 < GPIO2 ...

Even though they are in ascending order, the ordinals are not the pins of the chips. For some CPUs, e.g. Atmega328, the actual pinout even depends on the chip package.

> Anyway, my initial fear was that the GPIO_PIN macro might not work here as expected, but I now see there are further macros and code that do the correct mapping.

For all boards I know, the GPIOs on the boards are labeled with something like `IO0...IO39` or simply `0...39`. As long as the `GPIO_PIN(0,0) ... GPIO_PIN(0, 39)` is used, everything should work as expected.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190116/645dee28/attachment.html>

More information about the notifications mailing list