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
commit 8615ffb523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

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

View File

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

@ -1 +1 @@
Subproject commit d7caa63b0091f38af6657ec86b868bfa2e8a7b56 Subproject commit 409ed5502c254e462f3e31b0ea5ddee95f818a70