aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/ospi
diff options
context:
space:
mode:
authorBrian Schwind <[email protected]>2025-09-12 20:02:08 +0900
committerBrian Schwind <[email protected]>2025-09-13 00:13:05 +0900
commita7e1bf2aff94ed0dd3d56848ccb9afe7a127054e (patch)
tree5102390603400a55c2958b50747daa357a137f37 /embassy-stm32/src/ospi
parent59461ba75ab674073b11f7612627c9e2c6426b93 (diff)
Typo fixes
Diffstat (limited to 'embassy-stm32/src/ospi')
-rw-r--r--embassy-stm32/src/ospi/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs
index 8384f4fc4..4df3b0042 100644
--- a/embassy-stm32/src/ospi/mod.rs
+++ b/embassy-stm32/src/ospi/mod.rs
@@ -113,7 +113,7 @@ pub struct TransferConfig {
113 113
114 /// Data width (DMODE) 114 /// Data width (DMODE)
115 pub dwidth: OspiWidth, 115 pub dwidth: OspiWidth,
116 /// Data buffer 116 /// Data Double Transfer rate enable
117 pub ddtr: bool, 117 pub ddtr: bool,
118 118
119 /// Number of dummy cycles (DCYC) 119 /// Number of dummy cycles (DCYC)
@@ -467,11 +467,11 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
467 if let Some(data_length) = data_len { 467 if let Some(data_length) = data_len {
468 T::REGS.dlr().write(|v| { 468 T::REGS.dlr().write(|v| {
469 v.set_dl((data_length - 1) as u32); 469 v.set_dl((data_length - 1) as u32);
470 }) 470 });
471 } else { 471 } else {
472 T::REGS.dlr().write(|v| { 472 T::REGS.dlr().write(|v| {
473 v.set_dl((0) as u32); 473 v.set_dl((0) as u32);
474 }) 474 });
475 } 475 }
476 476
477 // Configure instruction/address/data/communication modes 477 // Configure instruction/address/data/communication modes
@@ -491,7 +491,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
491 w.set_sioo(command.sioo); 491 w.set_sioo(command.sioo);
492 }); 492 });
493 493
494 // Set informationrequired to initiate transaction 494 // Set information required to initiate transaction
495 if let Some(instruction) = command.instruction { 495 if let Some(instruction) = command.instruction {
496 if let Some(address) = command.address { 496 if let Some(address) = command.address {
497 T::REGS.ir().write(|v| { 497 T::REGS.ir().write(|v| {