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 <mail@chrenderle.de>
This commit is contained in:
bors[bot] 2023-02-12 11:00:22 +00:00 committed by GitHub
commit d159a6c62d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@ impl Into<u8> for APBPrescaler {
impl Into<u8> for AHBPrescaler { impl Into<u8> for AHBPrescaler {
fn into(self) -> u8 { fn into(self) -> u8 {
match self { match self {
AHBPrescaler::NotDivided => 1, AHBPrescaler::NotDivided => 0x0,
AHBPrescaler::Div2 => 0x08, AHBPrescaler::Div2 => 0x08,
AHBPrescaler::Div3 => 0x01, AHBPrescaler::Div3 => 0x01,
AHBPrescaler::Div4 => 0x09, AHBPrescaler::Div4 => 0x09,