stm32f1: Store adc clock rate in Clocks struct
This commit is contained in:
parent
ecb09b7313
commit
a93b1141e9
@ -202,6 +202,7 @@ impl<'d> Rcc<'d> {
|
|||||||
apb1_tim: Hertz(pclk1 * timer_mul1),
|
apb1_tim: Hertz(pclk1 * timer_mul1),
|
||||||
apb2_tim: Hertz(pclk2 * timer_mul2),
|
apb2_tim: Hertz(pclk2 * timer_mul2),
|
||||||
ahb: Hertz(hclk),
|
ahb: Hertz(hclk),
|
||||||
|
adc: Hertz(adcclk),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,9 @@ pub struct Clocks {
|
|||||||
|
|
||||||
#[cfg(rcc_f4)]
|
#[cfg(rcc_f4)]
|
||||||
pub pll48: Option<Hertz>,
|
pub pll48: Option<Hertz>,
|
||||||
|
|
||||||
|
#[cfg(rcc_f1)]
|
||||||
|
pub adc: Hertz,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Frozen clock frequencies
|
/// Frozen clock frequencies
|
||||||
|
Loading…
Reference in New Issue
Block a user