Photon and the PIN_MAP[] challenge!

Has there been a final consensus over this topic already?
I’ve seen this OneWire thread where some HAL functions were already applied - is this the way to go, or is there still some decision making to do?

If it’s still in the rough, I’ve got one more thought to throw in (in connection with Core/Photon unifiability ;-))

#define pinSet(pin, hilo) PIN_MAP2[pin].gpio_peripheral->BSRR = (PIN_MAP2[pin].gpio_pin << (hilo ? 0 : 16))

does work on both (I’m convinced until proven wrong :wink: - since I can’t test on a Photon)