diff options
| author | Brian Schwind <[email protected]> | 2025-10-04 13:04:42 +0900 |
|---|---|---|
| committer | Brian Schwind <[email protected]> | 2025-10-04 16:52:13 +0900 |
| commit | 617dd353637d5d99e47c357f9115f6f96144ed6b (patch) | |
| tree | 6a13dafa0056b6205922d5d28c126b11498a39e6 | |
| parent | e4e06ab5b136a21c98d42491ef1e31b6dc25e08e (diff) | |
ospi: use a named enum variant in place of a literal zero
| -rw-r--r-- | embassy-stm32/src/ospi/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs index d93cecb69..76e6b46eb 100644 --- a/embassy-stm32/src/ospi/mod.rs +++ b/embassy-stm32/src/ospi/mod.rs | |||
| @@ -451,7 +451,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> { | |||
| 451 | } | 451 | } |
| 452 | 452 | ||
| 453 | T::REGS.cr().modify(|w| { | 453 | T::REGS.cr().modify(|w| { |
| 454 | w.set_fmode(0.into()); | 454 | w.set_fmode(vals::FunctionalMode::INDIRECT_WRITE); |
| 455 | }); | 455 | }); |
| 456 | 456 | ||
| 457 | // Configure alternate bytes | 457 | // Configure alternate bytes |
