diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h index 7a523438bc..6ad2e4ab69 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h @@ -199,14 +199,15 @@ #ifdef HAL_CUSTOM_MCU_CLOCKRATE #if HAL_CUSTOM_MCU_CLOCKRATE == 480000000 #define STM32_PLL1_DIVN_VALUE 120 +#define STM32_PLL1_DIVQ_VALUE 12 #else #error "Unable to configure custom clockrate" #endif #else #define STM32_PLL1_DIVN_VALUE 100 +#define STM32_PLL1_DIVQ_VALUE 10 #endif #define STM32_PLL1_DIVP_VALUE 2 -#define STM32_PLL1_DIVQ_VALUE 10 #define STM32_PLL1_DIVR_VALUE 2 #define STM32_PLL2_DIVN_VALUE 50