Question
toggle led with delay inside exti interruption
Posted on March 18, 2013 at 20:53
Hi,
I am trying to toggle a led inside an EXTI interruption with Delay. The delay function is based on the systick intrruption. Everything works fine seperately but when I try to use the delay inside the EXTI interruption, nothing works anymore. I think the problem is on the perioritys of the interruptions. Here is the EXTI code, I hope someone can help me through:void EXTI0_IRQHandler(void){ if (EXTI_GetITStatus(EXTI_Line0) != RESET) { /* Toggle LED3; we suggest to use function */ GPIO_ToggleBits ( GPIOD,GPIO_Pin_12); Delay(4000); //4 seconds GPIO_ToggleBits ( GPIOD,GPIO_Pin_12); /* Clear the User Button EXTI line pending bit */ EXTI_ClearITPendingBit(EXTI_Line0); }}