2020-07-29 06:29 AM
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
2020-07-29 06:48 AM
NVIC_DisableIRQ(EXTI4_15_IRQn);
2020-07-29 07:06 AM
thanks, what register is that exactly that im writing to? im using an stm32f031k6
2020-07-29 07:17 AM
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();
}
}