Merge pull request #272 from thalesfragoso/f0-apb2

F0: Fix missing apb2 clock
This commit is contained in:
Thales
2021-07-03 02:20:17 -03:00
committed by GitHub
3 changed files with 3 additions and 4 deletions

View File

@ -205,8 +205,9 @@ impl<'d> Rcc<'d> {
Clocks {
sys: Hertz(real_sysclk),
apb1: Hertz(pclk),
apb2: Hertz(pclk),
apb1_tim: Hertz(pclk * timer_mul),
apb2_tim: Hertz(0),
apb2_tim: Hertz(pclk * timer_mul),
ahb: Hertz(hclk),
}
}

View File

@ -9,8 +9,6 @@ mod types;
pub struct Clocks {
pub sys: Hertz,
pub apb1: Hertz,
#[cfg(not(any(rcc_f0, rcc_f0x0)))]
pub apb2: Hertz,
pub apb1_tim: Hertz,