stm32/spi: add support for all word sizes.
Co-Authored-By: anton smeenk <asmeenk@planet.nl>
This commit is contained in:
@@ -9,7 +9,8 @@ use embassy_cortex_m::interrupt::Priority;
|
||||
use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
|
||||
use embassy_sync::waitqueue::AtomicWaker;
|
||||
|
||||
use super::{Dir, Word, WordSize};
|
||||
use super::word::{Word, WordSize};
|
||||
use super::Dir;
|
||||
use crate::_generated::BDMA_CHANNEL_COUNT;
|
||||
use crate::interrupt::{Interrupt, InterruptExt};
|
||||
use crate::pac;
|
||||
@@ -167,7 +168,7 @@ impl<'a, C: Channel> Transfer<'a, C> {
|
||||
ptr as *mut u32,
|
||||
len,
|
||||
true,
|
||||
W::bits(),
|
||||
W::size(),
|
||||
options,
|
||||
)
|
||||
}
|
||||
@@ -202,7 +203,7 @@ impl<'a, C: Channel> Transfer<'a, C> {
|
||||
ptr as *mut u32,
|
||||
len,
|
||||
true,
|
||||
W::bits(),
|
||||
W::size(),
|
||||
options,
|
||||
)
|
||||
}
|
||||
@@ -225,7 +226,7 @@ impl<'a, C: Channel> Transfer<'a, C> {
|
||||
repeated as *const W as *mut u32,
|
||||
count,
|
||||
false,
|
||||
W::bits(),
|
||||
W::size(),
|
||||
options,
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user