MAY i use Interrupt handler multiple times ?
In the follwoing code i would like to use same interrupt multiple times in order to blink the 4 leds different time.
i am storing the data in unint8_t ABB, i expect that each time i press the button the value in ABB is incremented but practically not working, where am i wrong ?
void EXTI1_IRQHandler(void)
{
if(EXTI_GetITStatus(EXTI_Line1))
ABB=(GPIO_ReadInputData(GPIOA) & GPIO_Pin_1);
if(ABB==0x00) //Button is pressed first time
LED1(); //GreeN
if(ABB==0x01) //Button is pressed 2nd time
LED2(); //White
if(ABB==0x10) //Button is pressed 3rd time
LED3(); //Yellow
if(ABB==0x11) //Button is pressed 4th time
LED4(); //RED
EXTI_ClearITPendingBit(EXTI_Line1);
}
