User Activity

I'm trying to change GPIO mode at runtime, i could able to change mode from input to output and vice versa. But once configuring GPIO as EXTI i'm not able to change it to any other mode. and even if i try to change, ISR is getting executed.