cancel
Showing results for 
Search instead for 
Did you mean: 

How does STM32F207 turn off all interrupts

aact6.1
Associate
  • How does STM32F207 turn off all interrupts

3 REPLIES 3
aact6.1
Associate
  • __disable_irq(); Close interrupt invalid

TDK
Guru

__disable_irq() will disable interrupts, but they will get executed if you call __enable_irq() down the line.

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

For what reason/purpose? The question lacks context.

It sets a flag in the MCU which causes it to ignore maskable interrupts, and not alter execution flow. You might find more details of the mechanics in documents like the TRM, and related texts.

You can disable them at the peripheral level and also at the NVIC.

The NVIC will block interrupts that can't pre-empt the currently executing one.

The NMI and RESET are non-maskable.

CPSID I / CPSIE I

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