From 98479658d49af8c73584e4f52af24123c4595e9b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 17 Mar 2024 18:40:12 +1100 Subject: [PATCH] HAL_ChibiOS: support H7 at 200MHz --- libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h index 3abf537e70..e615ce33ab 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h @@ -202,6 +202,9 @@ #if HAL_CUSTOM_MCU_CLOCKRATE == 480000000 #define STM32_PLL1_DIVN_VALUE 120 #define STM32_PLL1_DIVQ_VALUE 12 +#elif HAL_CUSTOM_MCU_CLOCKRATE == 200000000 +#define STM32_PLL1_DIVN_VALUE 50 +#define STM32_PLL1_DIVQ_VALUE 5 #else #error "Unable to configure custom clockrate" #endif