Fix rcc prescaler for wb55 HCLK1

- fix prescaler not divided which incorrectly set prescaler divided by 3
This commit is contained in:
Christian Enderle 2023-01-21 14:39:25 +01:00
parent 6ad2bcf97a
commit 5e3c33b777

View File

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