EXTI: Added function to get flag status

This commit adds a function to check the status of the EXTI interrupt flag for a given GPIO.