aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-08-22 19:48:03 +0000
committerGitHub <[email protected]>2025-08-22 19:48:03 +0000
commitef673c6ca310cf0a7e9b1254afb7806bd6879e94 (patch)
tree9f9e7a086fd60217a36cc2529b5df1d14ca9c50d /embassy-stm32/src
parentd65a5078f26f860881b2f4a0db84e0d8f3160624 (diff)
parent9db5a173d093e402b9cc10640c9619950849c57d (diff)
Merge pull request #4578 from lucimobility/bugfix/xspi-alternate-bytes
STM32 XSPI: Disable alternate bytes if not requested
Diffstat (limited to 'embassy-stm32/src')
-rw-r--r--embassy-stm32/src/xspi/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/xspi/mod.rs b/embassy-stm32/src/xspi/mod.rs
index 44c10b961..60ccf3c97 100644
--- a/embassy-stm32/src/xspi/mod.rs
+++ b/embassy-stm32/src/xspi/mod.rs
@@ -429,6 +429,11 @@ impl<'d, T: Instance, M: PeriMode> Xspi<'d, T, M> {
429 w.set_abdtr(command.abdtr); 429 w.set_abdtr(command.abdtr);
430 w.set_absize(CcrAbsize::from_bits(command.absize.into())); 430 w.set_absize(CcrAbsize::from_bits(command.absize.into()));
431 }) 431 })
432 } else {
433 T::REGS.ccr().modify(|w| {
434 // disable alternate bytes
435 w.set_abmode(CcrAbmode::B_0X0);
436 })
432 } 437 }
433 438
434 // Configure dummy cycles 439 // Configure dummy cycles