Skip to main content
deep_rune
Associate III
July 29, 2020
Question

How do I disable EXTI4_15_IRQHandler without using HAL

  • July 29, 2020
  • 3 replies
  • 751 views

The title says it all, I want a faster interrupt (without HAL) but I can't find the register I need to write to disable the interrupt

This topic has been closed for replies.

3 replies

TDK
July 29, 2020

NVIC_DisableIRQ(EXTI4_15_IRQn);

"If you feel a post has answered your question, please click ""Accept as Solution""."
deep_rune
deep_runeAuthor
Associate III
July 29, 2020

thanks, what register is that exactly that im writing to? im using an stm32f031k6

TDK
July 29, 2020

NVIC->ICER. HAL and CMSIS functions are easily inspected:

/**
 \brief Disable Interrupt
 \details Disables a device specific interrupt in the NVIC interrupt controller.
 \param [in] IRQn Device specific interrupt number.
 \note IRQn must not be negative.
 */
__STATIC_INLINE void __NVIC_DisableIRQ(IRQn_Type IRQn)
{
 if ((int32_t)(IRQn) >= 0)
 {
 NVIC->ICER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
 __DSB();
 __ISB();
 }
}

"If you feel a post has answered your question, please click ""Accept as Solution""."