use crate::pac::RCC; mod pll; pub use pll::PllConfig; const HSI: u32 = 64_000_000; // Hz const CSI: u32 = 4_000_000; // Hz const HSI48: u32 = 48_000_000; // Hz const LSI: u32 = 32_000; // Hz /// Configuration of the core clocks #[non_exhaustive] #[derive(Default)] pub struct Config { pub hse: Option, pub bypass_hse: bool, pub sys_ck: Option, pub per_ck: Option, pub hclk: Option, pub pclk1: Option, pub pclk2: Option, pub pclk3: Option, pub pclk4: Option, pub pll1: PllConfig, pub pll2: PllConfig, pub pll3: PllConfig, }