mirror of https://github.com/Desuuuu/klipper.git
stm32: Change stm32f0 OSPEEDR to "medium" speed
The previous OSPEEDR value of 0x2 was copied from the stm32f4.c code, but the stm32f0 interprets that value the same as 0x0 - which is "low" speed. Change the OSPEEDR value to "medium" speed so that it matches the configuration of stm32f1 chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1b801508ba
commit
97d36ac451
|
@ -64,7 +64,7 @@ gpio_clock_enable(GPIO_TypeDef *regs)
|
|||
RCC->AHBENR;
|
||||
}
|
||||
|
||||
#define STM_OSPEED 0x2 // ~2Mhz at 50pF
|
||||
#define STM_OSPEED 0x1 // ~10Mhz at 50pF
|
||||
|
||||
// Set the mode and extended function of a pin
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue