Configure GPIO interrupts correctly