[SQUASH ME] added guards for gpio impl.

- added for nrf51822 and stm32f3
[SQUASH ME] fixed documentation