Merge #762
762: Allow maximal clock for F7 HCLK r=Dirbaio a=matoushybl
Fixes a type in clock calculations, see: aaf2034cab/src/rcc.rs (L347)
Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
This commit is contained in:
commit
b7a27113f0
@ -170,7 +170,7 @@ pub(crate) unsafe fn init(config: Config) {
|
|||||||
// Calculate real AHB clock
|
// Calculate real AHB clock
|
||||||
let hclk = sysclk / hpre_div;
|
let hclk = sysclk / hpre_div;
|
||||||
|
|
||||||
assert!(hclk < max::HCLK_MAX);
|
assert!(hclk <= max::HCLK_MAX);
|
||||||
|
|
||||||
let pclk1 = config
|
let pclk1 = config
|
||||||
.pclk1
|
.pclk1
|
||||||
|
Loading…
Reference in New Issue
Block a user