Problem on NVIC STM32F100
When you enter the interrupt routine, you need to clear the interrupt source flag. If you do not clear the flag, when you exit the interrupt routine it will just re-enter the routine. This way you will always be stuck in EXTI0_IRQHandler.