aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/sdmmc/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/sdmmc/mod.rs b/embassy-stm32/src/sdmmc/mod.rs
index 2d91286fa..03d24dcb1 100644
--- a/embassy-stm32/src/sdmmc/mod.rs
+++ b/embassy-stm32/src/sdmmc/mod.rs
@@ -1580,7 +1580,7 @@ cfg_if::cfg_if! {
1580 // F1 uses AHB1(HCLK), which is correct in PAC 1580 // F1 uses AHB1(HCLK), which is correct in PAC
1581 macro_rules! kernel_clk { 1581 macro_rules! kernel_clk {
1582 ($inst:ident) => { 1582 ($inst:ident) => {
1583 peripherals::$inst::frequency() 1583 <peripherals::$inst as crate::rcc::sealed::RccPeripheral>::frequency()
1584 } 1584 }
1585 } 1585 }
1586 } else if #[cfg(any(stm32f2, stm32f4))] { 1586 } else if #[cfg(any(stm32f2, stm32f4))] {
@@ -1619,7 +1619,7 @@ cfg_if::cfg_if! {
1619 // Use default peripheral clock and hope it works 1619 // Use default peripheral clock and hope it works
1620 macro_rules! kernel_clk { 1620 macro_rules! kernel_clk {
1621 ($inst:ident) => { 1621 ($inst:ident) => {
1622 peripherals::$inst::frequency() 1622 <peripherals::$inst as crate::rcc::sealed::RccPeripheral>::frequency()
1623 } 1623 }
1624 } 1624 }
1625 } 1625 }