diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-03-20 03:38:21 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-03-29 00:58:57 +0200 |
| commit | f36cbe5e0cfa0a791d53ae6ddde40d69982867f4 (patch) | |
| tree | ba0cda897e7aa91e2f7fc73772b57d07db136166 /embassy-nrf-examples/src | |
| parent | ba6e0a405831793ab1e5acaa4694171199012df0 (diff) | |
nrf/spim: do not use PeripheralMutex
Diffstat (limited to 'embassy-nrf-examples/src')
| -rw-r--r-- | embassy-nrf-examples/src/bin/spim.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf-examples/src/bin/spim.rs b/embassy-nrf-examples/src/bin/spim.rs index 8eaac5e15..b7436332e 100644 --- a/embassy-nrf-examples/src/bin/spim.rs +++ b/embassy-nrf-examples/src/bin/spim.rs | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #[path = "../example_common.rs"] | 7 | #[path = "../example_common.rs"] |
| 8 | mod example_common; | 8 | mod example_common; |
| 9 | use embassy_nrf::gpio::{Level, Output}; | 9 | use embassy_nrf::gpio::{Level, Output, OutputDrive}; |
| 10 | use embassy_nrf::peripherals::Peripherals; | 10 | use embassy_nrf::peripherals::Peripherals; |
| 11 | use embassy_traits::spi::FullDuplex; | 11 | use embassy_traits::spi::FullDuplex; |
| 12 | use example_common::*; | 12 | use example_common::*; |
| @@ -37,7 +37,7 @@ async fn run() { | |||
| 37 | let spim = spim::Spim::new(p.spim3, irq, p.p0_29, p.p0_28, p.p0_30, config); | 37 | let spim = spim::Spim::new(p.spim3, irq, p.p0_29, p.p0_28, p.p0_30, config); |
| 38 | pin_mut!(spim); | 38 | pin_mut!(spim); |
| 39 | 39 | ||
| 40 | let mut ncs = Output::new(p.p0_31, Level::High); | 40 | let mut ncs = Output::new(p.p0_31, Level::High, OutputDrive::Standard); |
| 41 | 41 | ||
| 42 | // Example on how to talk to an ENC28J60 chip | 42 | // Example on how to talk to an ENC28J60 chip |
| 43 | 43 | ||
