mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
fix "prescaler none" which incorrectly set "prescaler divided by 3"
This commit is contained in:
parent
e1eac15c42
commit
d21643c060
@ -158,7 +158,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,
|
||||
|
Loading…
Reference in New Issue
Block a user