aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Dupont <[email protected]>2023-04-03 17:55:05 +0200
committerMathieu Dupont <[email protected]>2023-04-03 17:55:05 +0200
commit1349dabe1aae491d83b83d27a80da7216333bb52 (patch)
treeb2c3fd5c4a078f005aca393d505926a42ea5c863
parent932b80ca8a5d49bcd05d523fe7f7320e2b960e85 (diff)
add compilation time exclusion for stm32f410
-rw-r--r--embassy-stm32/src/rcc/f4.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/f4.rs b/embassy-stm32/src/rcc/f4.rs
index d0e0d585a..2a17eb9b0 100644
--- a/embassy-stm32/src/rcc/f4.rs
+++ b/embassy-stm32/src/rcc/f4.rs
@@ -228,6 +228,7 @@ impl sealed::McoInstance for peripherals::MCO2 {
228 RCC.cr().modify(|w| w.set_pllon(true)); 228 RCC.cr().modify(|w| w.set_pllon(true));
229 while !RCC.cr().read().pllrdy() {} 229 while !RCC.cr().read().pllrdy() {}
230 } 230 }
231 #[cfg(not(stm32f410))]
231 Mco2::PLLI2S => { 232 Mco2::PLLI2S => {
232 RCC.cr().modify(|w| w.set_plli2son(true)); 233 RCC.cr().modify(|w| w.set_plli2son(true));
233 while !RCC.cr().read().plli2srdy() {} 234 while !RCC.cr().read().plli2srdy() {}