Commit ef18fe4
committed
nrf: disable interrupts before running wfi
Also, run background tasks with interrupts disabled. This ensures
that any buffers are drained, and if an interrupt arrives after
buffers are drained but before the WFI is executed then the WFI
instruction will return immediately.
This fixes #2855 on NRF.
Signed-off-by: Sean Cross <[email protected]>1 parent c9a3664 commit ef18fe4
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
250 | 257 | | |
| 258 | + | |
251 | 259 | | |
252 | 260 | | |
253 | 261 | | |
| |||
0 commit comments