diff options
| author | Brian Schwind <[email protected]> | 2025-10-04 13:27:37 +0900 |
|---|---|---|
| committer | Brian Schwind <[email protected]> | 2025-10-04 20:14:39 +0900 |
| commit | 2e46fbf3c94b226ffd07a8c3d0730e138f4f168e (patch) | |
| tree | f24ef0c14ec66c4fadde152564d753845df75f3c | |
| parent | b0a62ddaaaa3e8d89b7af47d904365e6285f97cb (diff) | |
xspi: use a named enum variant in place of a literal zero
| -rw-r--r-- | embassy-stm32/src/xspi/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/xspi/mod.rs b/embassy-stm32/src/xspi/mod.rs index 901569f64..cfc24422a 100644 --- a/embassy-stm32/src/xspi/mod.rs +++ b/embassy-stm32/src/xspi/mod.rs | |||
| @@ -420,9 +420,9 @@ impl<'d, T: Instance, M: PeriMode> Xspi<'d, T, M> { | |||
| 420 | return Err(XspiError::InvalidCommand); | 420 | return Err(XspiError::InvalidCommand); |
| 421 | } | 421 | } |
| 422 | 422 | ||
| 423 | T::REGS.cr().modify(|w| { | 423 | T::REGS |
| 424 | w.set_fmode(0.into()); | 424 | .cr() |
| 425 | }); | 425 | .modify(|w| w.set_fmode(Fmode::from_bits(XspiMode::IndirectWrite.into()))); |
| 426 | 426 | ||
| 427 | // Configure alternate bytes | 427 | // Configure alternate bytes |
| 428 | if let Some(ab) = command.alternate_bytes { | 428 | if let Some(ab) = command.alternate_bytes { |
