Fix warnings
This commit is contained in:
@ -13,8 +13,8 @@ use traits::spi::FullDuplex;
|
||||
|
||||
use crate::gpio::sealed::Pin as _;
|
||||
use crate::gpio::{OptionalPin, Pin as GpioPin};
|
||||
use crate::interrupt::{self, Interrupt};
|
||||
use crate::{pac, peripherals, util::slice_in_ram_or};
|
||||
use crate::interrupt::Interrupt;
|
||||
use crate::{pac, util::slice_in_ram_or};
|
||||
|
||||
pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3};
|
||||
pub use pac::spim0::frequency::FREQUENCY_A as Frequency;
|
||||
@ -285,7 +285,7 @@ impl<'d, T: Instance> embedded_hal::blocking::spi::Write<u8> for Spim<'d, T> {
|
||||
|
||||
fn write(&mut self, words: &[u8]) -> Result<(), Self::Error> {
|
||||
slice_in_ram_or(words, Error::DMABufferNotInDataMemory)?;
|
||||
let mut recv: &mut [u8] = &mut [];
|
||||
let recv: &mut [u8] = &mut [];
|
||||
|
||||
// Conservative compiler fence to prevent optimizations that do not
|
||||
// take in to account actions by DMA. The fence has been placed here,
|
||||
|
Reference in New Issue
Block a user