Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Merge #66
Browse files Browse the repository at this point in the history
66: Fix off-by-one for maximum PCLK1 clock rate. r=japaric a=sapir
  • Loading branch information
bors[bot] committed Mar 26, 2018
2 parents 897596f + 1605174 commit 9d84254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl CFGR {
let ppre1 = 1 << (ppre1_bits - 0b011);
let pclk1 = hclk / u32(ppre1);

assert!(pclk1 < 36_000_000);
assert!(pclk1 <= 36_000_000);

let ppre2_bits = self.pclk2
.map(|pclk2| match hclk / pclk2 {
Expand Down

0 comments on commit 9d84254

Please sign in to comment.