From 13975a08184b51b91edcb67b96694129389717f2 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Fri, 9 Jul 2021 09:33:17 -0400 Subject: [PATCH] Try to improve H7 clockstuff. --- embassy-stm32/src/rcc/h7/mod.rs | 1 + embassy-stm32/src/rcc/mod.rs | 3 +++ stm32-data | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/embassy-stm32/src/rcc/h7/mod.rs b/embassy-stm32/src/rcc/h7/mod.rs index 30990233..5ec53182 100644 --- a/embassy-stm32/src/rcc/h7/mod.rs +++ b/embassy-stm32/src/rcc/h7/mod.rs @@ -532,6 +532,7 @@ pub unsafe fn init(config: Config) { ahb1: core_clocks.hclk, ahb2: core_clocks.hclk, ahb3: core_clocks.hclk, + ahb4: core_clocks.hclk, apb1: core_clocks.pclk1, apb2: core_clocks.pclk2, apb4: core_clocks.pclk4, diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs index c7d1ae61..b7b692f1 100644 --- a/embassy-stm32/src/rcc/mod.rs +++ b/embassy-stm32/src/rcc/mod.rs @@ -26,6 +26,9 @@ pub struct Clocks { #[cfg(any(rcc_l4, rcc_f4, rcc_h7, rcc_wb55, rcc_wl5x))] pub ahb3: Hertz, + #[cfg(any(rcc_h7))] + pub ahb4: Hertz, + #[cfg(any(rcc_h7))] pub apb4: Hertz, } diff --git a/stm32-data b/stm32-data index a2167373..3d0489cd 160000 --- a/stm32-data +++ b/stm32-data @@ -1 +1 @@ -Subproject commit a2167373ee8fd0e75dce003bfdbadda8b32ff77c +Subproject commit 3d0489cd17a4ea1d8da289bd5854346fdfbf5f61