From 5e3c33b77766df94f6021457c723ad52d97684b7 Mon Sep 17 00:00:00 2001 From: Christian Enderle Date: Sat, 21 Jan 2023 14:39:25 +0100 Subject: [PATCH] Fix rcc prescaler for wb55 HCLK1 - fix prescaler not divided which incorrectly set prescaler divided by 3 --- embassy-stm32/src/rcc/wb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/rcc/wb.rs b/embassy-stm32/src/rcc/wb.rs index f6a5feea..c9ada83e 100644 --- a/embassy-stm32/src/rcc/wb.rs +++ b/embassy-stm32/src/rcc/wb.rs @@ -64,7 +64,7 @@ impl Into for APBPrescaler { impl Into for AHBPrescaler { fn into(self) -> u8 { match self { - AHBPrescaler::NotDivided => 1, + AHBPrescaler::NotDivided => 0x0, AHBPrescaler::Div2 => 0x08, AHBPrescaler::Div3 => 0x01, AHBPrescaler::Div4 => 0x09,