nrf/spim: do not use PeripheralMutex
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user