Skip to main content
JHERI
Associate III
December 18, 2018
Question

Interrupt Disable, ??/

  • December 18, 2018
  • 3 replies
  • 1074 views

Hello

using HAL libraries is it possible to disable for a short time an external interrupt pin ??

I have had a look in the HAL GPIO files and can not see anything useful

Just want to disable while a trigger a debounce timer, there must be a way of just disabling the external gpio interrupt pin

any help will be very much appreciated

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    December 18, 2018

    Would expect it could be done at the EXTI level, or NVIC. The Reference Manual should describe the registers for the former.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    After Forever
    Senior III
    December 19, 2018

    Use NVIC_DisableIRQ and NVIC_EnableIRQ, passing your IRQ as a parameter, example:

    NVIC_DisableIRQ(EXTI15_10_IRQn);

    JHERI
    JHERIAuthor
    Associate III
    January 5, 2019

    Thank you