diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-02-12 11:00:22 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-12 11:00:22 +0000 |
| commit | d159a6c62d09155261c14edec69dc9dd9e662a92 (patch) | |
| tree | 77905b70ab6ad54150b1c7f048e6511094b12e22 | |
| parent | e1eac15c429f88b1176109d6ce42185e2774ac86 (diff) | |
| parent | d21643c060376fff0f0f5b8c5bc4eed4df4bc560 (diff) | |
Merge #1211
1211: Fix rcc prescaler for wl55 HCLK1 r=lulf a=chrenderle
fix "prescaler none" which incorrectly set "prescaler divided by 3"
Issue: #1168
Co-authored-by: Christian Enderle <[email protected]>
| -rw-r--r-- | embassy-stm32/src/rcc/wl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<u8> for APBPrescaler { | |||
| 158 | impl Into<u8> for AHBPrescaler { | 158 | impl Into<u8> for AHBPrescaler { |
| 159 | fn into(self) -> u8 { | 159 | fn into(self) -> u8 { |
| 160 | match self { | 160 | match self { |
| 161 | AHBPrescaler::NotDivided => 1, | 161 | AHBPrescaler::NotDivided => 0x0, |
| 162 | AHBPrescaler::Div2 => 0x08, | 162 | AHBPrescaler::Div2 => 0x08, |
| 163 | AHBPrescaler::Div3 => 0x01, | 163 | AHBPrescaler::Div3 => 0x01, |
| 164 | AHBPrescaler::Div4 => 0x09, | 164 | AHBPrescaler::Div4 => 0x09, |
