mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-08 06:24:03 -06:00
stm32: Fix pll_base on stm32h7 when using a clock other than 25Mhz
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
73e27aee4f
commit
5001983d34
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ clock_setup(void)
|
|||
;
|
||||
// (HSE 25mhz) /DIVM1(5) (pll_base 5Mhz) *DIVN1(192) (pll_freq 960Mhz)
|
||||
// /DIVP1(2) (SYSCLK 480Mhz)
|
||||
uint32_t pll_base = 5000000;
|
||||
uint32_t pll_base = CONFIG_STM32_CLOCK_REF_25M ? 5000000 : 4000000;
|
||||
// Only even dividers (DIVP1) are allowed
|
||||
uint32_t pll_freq = CONFIG_CLOCK_FREQ * 2;
|
||||
if (!CONFIG_STM32_CLOCK_REF_INTERNAL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue