Trait stm32f412g::clocks::Stm32f4Clocks
source · pub trait Stm32f4Clocks {
// Required methods
fn get_rcc(&self) -> &Rcc;
fn get_ahb_frequency(&self) -> usize;
}
Expand description
Stm32f4Clocks trait
This can be used to control clocks without the need to keep a reference of the chip specific Clocks struct, for instance by peripherals
Required Methods§
sourcefn get_ahb_frequency(&self) -> usize
fn get_ahb_frequency(&self) -> usize
Get current AHB clock (HCLK) frequency in Hz