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