Function stm32wlxx_hal::rcc::hclk1_hz
source · pub fn hclk1_hz(rcc: &RCC) -> u32
Expand description
Calculate the current hclk1 frequency in hertz
Fractional frequencies will be rounded down.
Example
use stm32wlxx_hal::{pac, rcc::hclk1_hz};
let dp: pac::Peripherals = pac::Peripherals::take().unwrap();
// without any initialization hclk1 will be 4MHz
assert_eq!(hclk1_hz(&dp.RCC), 4_000_000);