From 01fb447e9d8eec19c8bf766b5ae7f17c95233fd1 Mon Sep 17 00:00:00 2001 From: Matous Hybl Date: Sun, 8 May 2022 23:07:28 +0200 Subject: [PATCH] Allow maximal clock for F7 HCLK --- embassy-stm32/src/rcc/f7.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/rcc/f7.rs b/embassy-stm32/src/rcc/f7.rs index 9f2c63c16..f45a725ce 100644 --- a/embassy-stm32/src/rcc/f7.rs +++ b/embassy-stm32/src/rcc/f7.rs @@ -170,7 +170,7 @@ pub(crate) unsafe fn init(config: Config) { // Calculate real AHB clock let hclk = sysclk / hpre_div; - assert!(hclk < max::HCLK_MAX); + assert!(hclk <= max::HCLK_MAX); let pclk1 = config .pclk1