[NUCLEO_F103RB] Improvement of gpio and gpio_irq api