Commit 2e959f3
committed
fix(rp2040): WFI doesn't wake up when interrupts disabled
according to the ARM ARM, we should wake even if PM=1, as long as the exception has higher priority than the currently executing handler:
> If PRIMASK.PM is set to 1, an asynchronous exception that has a higher group priority than any
active exception results in a WFI instruction exit. If the group priority of the exception is less than or
equal to the execution group priority, the exception is ignored.
see adafruit/circuitpython#53311 parent 3b08178 commit 2e959f3
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
675 | 681 | | |
676 | 682 | | |
677 | 683 | | |
| |||
0 commit comments