diff --git a/embassy-stm32/src/sdmmc/mod.rs b/embassy-stm32/src/sdmmc/mod.rs index 2d91286f..03d24dcb 100644 --- a/embassy-stm32/src/sdmmc/mod.rs +++ b/embassy-stm32/src/sdmmc/mod.rs @@ -1580,7 +1580,7 @@ cfg_if::cfg_if! { // F1 uses AHB1(HCLK), which is correct in PAC macro_rules! kernel_clk { ($inst:ident) => { - peripherals::$inst::frequency() + ::frequency() } } } else if #[cfg(any(stm32f2, stm32f4))] { @@ -1619,7 +1619,7 @@ cfg_if::cfg_if! { // Use default peripheral clock and hope it works macro_rules! kernel_clk { ($inst:ident) => { - peripherals::$inst::frequency() + ::frequency() } } }