[stm32] safe gpio toggle

With this change, `gpio_toggle()` wont't affect in any case the state of the non-toggled GPIOs.
This makes toggling GPIOs more safe, if pins of the same port are used in interrupts.