How does STM32F207 turn off all interrupts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-12 2:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-12 2:50 AM
- __disable_irq(); Close interrupt invalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-12 7:05 AM
__disable_irq() will disable interrupts, but they will get executed if you call __enable_irq() down the line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-12 8:05 AM
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
Up vote any posts that you find helpful, it shows what's working..
