Allow maximal clock for F7 HCLK

This commit is contained in:
Matous Hybl 2022-05-08 23:07:28 +02:00
parent e9ab960ebf
commit 01fb447e9d

View File

@ -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