stm32/sdmmc: Fix compile errors

This commit is contained in:
chemicstry 2023-02-23 18:00:55 +02:00
parent 896764bb85
commit 73ef85b765

View File

@ -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()
<peripherals::$inst as crate::rcc::sealed::RccPeripheral>::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()
<peripherals::$inst as crate::rcc::sealed::RccPeripheral>::frequency()
}
}
}