[NUCLEO_F302R8] Fix bug with MBED_A7 test (irq edges disabled)