nrf/spim: do not use PeripheralMutex

This commit is contained in:
Dario Nieuwenhuis
2021-03-20 03:38:21 +01:00
parent ba6e0a4058
commit f36cbe5e0c
2 changed files with 49 additions and 73 deletions

View File

@ -6,7 +6,7 @@
#[path = "../example_common.rs"]
mod example_common;
use embassy_nrf::gpio::{Level, Output};
use embassy_nrf::gpio::{Level, Output, OutputDrive};
use embassy_nrf::peripherals::Peripherals;
use embassy_traits::spi::FullDuplex;
use example_common::*;
@ -37,7 +37,7 @@ async fn run() {
let spim = spim::Spim::new(p.spim3, irq, p.p0_29, p.p0_28, p.p0_30, config);
pin_mut!(spim);
let mut ncs = Output::new(p.p0_31, Level::High);
let mut ncs = Output::new(p.p0_31, Level::High, OutputDrive::Standard);
// Example on how to talk to an ENC28J60 chip