forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nrf: common-hal: support nesting enable/disable interrupts
Support calling common_hal_mcu_disable_interrupts() and common_hal_mcu_enable_interrupts() multiple times, and only let it take effect when the counter reaches 0. This is necessary because several routines in RUN_BACKGROUND_TASKS call these functions to disable interrupts, however we also need the ability to do this while interrupts are already disabled. Signed-off-by: Sean Cross <sean@xobs.io>
- Loading branch information
Showing
1 changed file
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters