stm32f1: Store adc clock rate in Clocks struct

This commit is contained in:
Sjoerd Simons 2021-12-30 10:50:28 +01:00
parent ecb09b7313
commit a93b1141e9
2 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,7 @@ impl<'d> Rcc<'d> {
apb1_tim: Hertz(pclk1 * timer_mul1),
apb2_tim: Hertz(pclk2 * timer_mul2),
ahb: Hertz(hclk),
adc: Hertz(adcclk),
}
}
}

View File

@ -46,6 +46,9 @@ pub struct Clocks {
#[cfg(rcc_f4)]
pub pll48: Option<Hertz>,
#[cfg(rcc_f1)]
pub adc: Hertz,
}
/// Frozen clock frequencies