[NUCLEO_L152RE] Improvements of gpio and gpio_irq api