diff options
| -rw-r--r-- | embassy-stm32/src/ospi/mod.rs | 8 |
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| { |
