If you rebase the work on top of current master, you will be able to benefit from the new `GPIO_PORT_TO_BASE()` macro if you want to do so (which I should probably do for buttons, come think of it ;)).