GPIO mode setting on BBB

To #2, Might be a bit late to the party, but the pin # is the GPIO port * 32 + bit, e.g. GPIO2_7 is pin 71 : 2 * 32 + 7
The datasheet shows GPIO2_7 being header P8 pin 46.

Reversing, the output tells you e.g.

pin 60 (44e108f0): (MUX UNCLAIMED) (GPIO UNCLAIMED)

pin 60, so… 60/32 = 1.875, so we know this is GPIO1, less the GPIO port from the pin: 60-(1*32) to get the GPIO bit of 28. GPIO1_28 on the datasheet says header P9, pin 12