Skip to content

Commit

Permalink
Merge pull request #190 from luisroel91/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Dirbaio authored Aug 15, 2023
2 parents 6415c63 + 0f67a43 commit 86a1d02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ The default priority level for interrupts is 0, so for *every single interrupt*
```rust
use embassy_nrf::interrupt::{self, InterruptExt};

let mut irq = interrupt::take!(SPIM3);
irq.set_priority(interrupt::Priority::P3);
let mut spim = spim::Spim::new( p.SPI3, irq, p.P0_13, p.P0_16, p.P0_15, config);
interrupt::SPIM3.set_priority(interrupt::Priority::P3);
let mut spim = spim::Spim::new(p.SPI3, Irqs, p.P0_13, p.P0_16, p.P0_15, config);
```
If you're using `embassy-nrf` with the `gpiote` or `time-driver-rtc1` features enabled, you'll need to edit your embassy_config to move those priorities:
Expand Down

0 comments on commit 86a1d02

Please sign in to comment.