cancel
Showing results for 
Search instead for 
Did you mean: 

How do I disable EXTI4_15_IRQHandler without using HAL

deep_rune
Associate III

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

3 REPLIES 3
TDK
Guru

NVIC_DisableIRQ(EXTI4_15_IRQn);

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

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

TDK
Guru

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".