mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Merge pull request #272 from thalesfragoso/f0-apb2
F0: Fix missing apb2 clock
This commit is contained in:
commit
8615ffb523
@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user