From d21643c060376fff0f0f5b8c5bc4eed4df4bc560 Mon Sep 17 00:00:00 2001 From: Christian Enderle Date: Sun, 12 Feb 2023 11:31:22 +0100 Subject: [PATCH] fix "prescaler none" which incorrectly set "prescaler divided by 3" --- embassy-stm32/src/rcc/wl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/rcc/wl.rs b/embassy-stm32/src/rcc/wl.rs index 347674918..82b0d04e2 100644 --- a/embassy-stm32/src/rcc/wl.rs +++ b/embassy-stm32/src/rcc/wl.rs @@ -158,7 +158,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,