Peripheral: STM32 Gpio: Add configure method, beautify.

Add hardware port implementation.
Adapt to new coding style.
Fix blink example.