Skip to main content
khouja_houssem
Associate III
April 9, 2013
Question

DISABLE/ENABLE EXTI interrupt

  • April 9, 2013
  • 1 reply
  • 499 views
Posted on April 09, 2013 at 15:34

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?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    April 9, 2013
    Posted on April 09, 2013 at 15:45

    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

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..