rcc: ahb/apb -> hclk/pclk

This commit is contained in:
xoviat
2023-10-15 19:51:35 -05:00
parent 1fc35c753b
commit b24520579a
24 changed files with 145 additions and 139 deletions

View File

@ -164,7 +164,7 @@ impl<'d, T: Instance, P: PHY> Ethernet<'d, T, P> {
});
// NOTE(unsafe) We got the peripheral singleton, which means that `rcc::init` was called
let hclk = unsafe { crate::rcc::get_freqs() }.ahb1;
let hclk = unsafe { crate::rcc::get_freqs() }.hclk1;
let hclk_mhz = hclk.0 / 1_000_000;
// Set the MDC clock frequency in the range 1MHz - 2.5MHz