From 73ef85b7650eea65c2f52e570f26062dd8ec38d0 Mon Sep 17 00:00:00 2001 From: chemicstry Date: Thu, 23 Feb 2023 18:00:55 +0200 Subject: [PATCH] stm32/sdmmc: Fix compile errors --- embassy-stm32/src/sdmmc/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } } }