aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf-examples/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-03-20 03:38:21 +0100
committerDario Nieuwenhuis <[email protected]>2021-03-29 00:58:57 +0200
commitf36cbe5e0cfa0a791d53ae6ddde40d69982867f4 (patch)
treeba0cda897e7aa91e2f7fc73772b57d07db136166 /embassy-nrf-examples/src
parentba6e0a405831793ab1e5acaa4694171199012df0 (diff)
nrf/spim: do not use PeripheralMutex
Diffstat (limited to 'embassy-nrf-examples/src')
-rw-r--r--embassy-nrf-examples/src/bin/spim.rs4
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"]
8mod example_common; 8mod example_common;
9use embassy_nrf::gpio::{Level, Output}; 9use embassy_nrf::gpio::{Level, Output, OutputDrive};
10use embassy_nrf::peripherals::Peripherals; 10use embassy_nrf::peripherals::Peripherals;
11use embassy_traits::spi::FullDuplex; 11use embassy_traits::spi::FullDuplex;
12use example_common::*; 12use 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