aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-02-07 14:14:47 +0100
committerRasmus Melchior Jacobsen <[email protected]>2023-02-07 14:14:47 +0100
commit494a76a0f1be2fb35000c7a088f9bda21c73ad9e (patch)
tree67f0547585e6e5ee2d5b9639599e9ad2bf2712ca
parent36ca18132dd525bc2a3cdac0246834a2aae07ca9 (diff)
React to updated fsmc versions
-rw-r--r--embassy-stm32/src/fmc/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/fmc/mod.rs b/embassy-stm32/src/fmc/mod.rs
index 0c5461044..13c16af52 100644
--- a/embassy-stm32/src/fmc/mod.rs
+++ b/embassy-stm32/src/fmc/mod.rs
@@ -28,9 +28,9 @@ where
28 28
29 fn memory_controller_enable(&mut self) { 29 fn memory_controller_enable(&mut self) {
30 // fmc v1 and v2 does not have the fmcen bit 30 // fmc v1 and v2 does not have the fmcen bit
31 // fsmc v1 and v2 does not have the fmcen bit 31 // fsmc v1, v2 and v3 does not have the fmcen bit
32 // This is a "not" because it is expected that all future versions have this bit 32 // This is a "not" because it is expected that all future versions have this bit
33 #[cfg(not(any(fmc_v1x3, fmc_v2x1, fsmc_v1x3, fsmc_v2x1)))] 33 #[cfg(not(any(fmc_v1x3, fmc_v2x1, fsmc_v1x0, fsmc_v2x3, fsmc_v3x1)))]
34 unsafe { 34 unsafe {
35 T::regs().bcr1().modify(|r| r.set_fmcen(true)) 35 T::regs().bcr1().modify(|r| r.set_fmcen(true))
36 }; 36 };