Commit bb52df2
committed
raspberrypi: Don't block DMA_IRQ_1 during common_hal_mcu_disable_interrupts
doing so causes the picodvi display on rp2350 to blank, because this
irq is handed by cpu0.
Instead, use the BASEPRI register so that common_hal_mcu_disable_interrupts
masks interrupts with lower priority (higher priority values) than
PICO_ELEVATED_IRQ_PRIORITY. This has the effect of masking "regular"
interrupts while still letting this priority interrupt occur.
port_idle_until_interrupt now needs to directly manipulate the interrupt
enable state, because an interrupt masked via BASEPRI also does not
cause the WFI instruction to complete. Since I don't know that
`nesting_count==0` is a precondition of `port_idle_until_interrupt`,
also set and restore BASEPRI before WFI.1 parent 255eea9 commit bb52df2
File tree
3 files changed
+47
-11
lines changed- ports/raspberrypi
- common-hal
- microcontroller
- picodvi
- supervisor
3 files changed
+47
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
37 | 51 | | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
| 55 | + | |
41 | 56 | | |
42 | | - | |
| 57 | + | |
43 | 58 | | |
44 | 59 | | |
45 | | - | |
46 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
47 | 64 | | |
48 | | - | |
49 | | - | |
| 65 | + | |
50 | 66 | | |
51 | 67 | | |
52 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
500 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
501 | 515 | | |
502 | 516 | | |
503 | 517 | | |
| |||
506 | 520 | | |
507 | 521 | | |
508 | 522 | | |
509 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
510 | 529 | | |
511 | 530 | | |
512 | 531 | | |
| |||
0 commit comments