aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-01-21 14:10:02 +0000
committerGitHub <[email protected]>2023-01-21 14:10:02 +0000
commitf98ba4ebac192e81c46933c0dc1dfb2d907cd532 (patch)
treec04748197863e68af3744f21efa9fa7113a0fd3d
parent6ad2bcf97a980997e4f18866c99046422aa75b95 (diff)
parent5e3c33b77766df94f6021457c723ad52d97684b7 (diff)
Merge #1168
1168: Fix rcc prescaler for wb55 HCLK1 r=lulf a=chrenderle - fix prescaler not divided which incorrectly set prescaler divided by 3 Issue: #1137 Co-authored-by: Christian Enderle <[email protected]>
-rw-r--r--embassy-stm32/src/rcc/wb.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rcc/wb.rs b/embassy-stm32/src/rcc/wb.rs
index f6a5feea6..c9ada83e2 100644
--- a/embassy-stm32/src/rcc/wb.rs
+++ b/embassy-stm32/src/rcc/wb.rs
@@ -64,7 +64,7 @@ impl Into<u8> for APBPrescaler {
64impl Into<u8> for AHBPrescaler { 64impl Into<u8> for AHBPrescaler {
65 fn into(self) -> u8 { 65 fn into(self) -> u8 {
66 match self { 66 match self {
67 AHBPrescaler::NotDivided => 1, 67 AHBPrescaler::NotDivided => 0x0,
68 AHBPrescaler::Div2 => 0x08, 68 AHBPrescaler::Div2 => 0x08,
69 AHBPrescaler::Div3 => 0x01, 69 AHBPrescaler::Div3 => 0x01,
70 AHBPrescaler::Div4 => 0x09, 70 AHBPrescaler::Div4 => 0x09,