Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rp2: Make atomic sections suspend the other core (if active).
When a flash write/erase is in progress, we need to ensure that the other core cannot be using XIP. This also implements MICROPY_BEGIN_ATOMIC_SECTION as a full mutex, which is necessary as it's used to syncronise access to things like the scheduler queue. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
- Loading branch information
Showing
2 changed files
with
46 additions
and
3 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
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