aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/ospi/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs
index a1f3c8b03..2e4943a1b 100644
--- a/embassy-stm32/src/ospi/mod.rs
+++ b/embassy-stm32/src/ospi/mod.rs
@@ -1203,7 +1203,7 @@ impl<'d, T: Instance> Ospi<'d, T, Async> {
1203 .modify(|v| v.set_fmode(vals::FunctionalMode::INDIRECT_WRITE)); 1203 .modify(|v| v.set_fmode(vals::FunctionalMode::INDIRECT_WRITE));
1204 1204
1205 // TODO: implement this using a LinkedList DMA to offload the whole transfer off the CPU. 1205 // TODO: implement this using a LinkedList DMA to offload the whole transfer off the CPU.
1206 for chunk in buf.chunks(0xFFFF) { 1206 for chunk in buf.chunks(0xFFFF / W::size().bytes()) {
1207 let transfer = unsafe { 1207 let transfer = unsafe {
1208 self.dma 1208 self.dma
1209 .as_mut() 1209 .as_mut()
@@ -1278,7 +1278,7 @@ impl<'d, T: Instance> Ospi<'d, T, Async> {
1278 .modify(|v| v.set_fmode(vals::FunctionalMode::INDIRECT_WRITE)); 1278 .modify(|v| v.set_fmode(vals::FunctionalMode::INDIRECT_WRITE));
1279 1279
1280 // TODO: implement this using a LinkedList DMA to offload the whole transfer off the CPU. 1280 // TODO: implement this using a LinkedList DMA to offload the whole transfer off the CPU.
1281 for chunk in buf.chunks(0xFFFF) { 1281 for chunk in buf.chunks(0xFFFF / W::size().bytes()) {
1282 let transfer = unsafe { 1282 let transfer = unsafe {
1283 self.dma 1283 self.dma
1284 .as_mut() 1284 .as_mut()