2013-04-09 06:34 AM
I need to DISABLE EXTI interrupt inside EXTI_IRQ_Handler and re-ENABLE it later through my code. Is there a way to do that?
2013-04-09 06:45 AM
Disabling, using parameters per Init routine
uint32_t tmp = (uint32_t)EXTI_BASE;
tmp += EXTI_InitStruct->EXTI_Mode; // Nominally EXTI_Mode_Interrupt;
/* Disable the selected external lines */
*(__IO uint32_t *) tmp &= ~EXTI_InitStruct->EXTI_Line; // EXTI_LineX