From 9e0edba31d5b0be09743c7789b27afb3e727f296 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Feb 2020 15:44:08 +1100 Subject: [PATCH] HAL_ChibiOS: raised timer clocks to 200MHz this gives more flexibility in setting up timers for DShot --- .../AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h index 4a3c29226e..f30d6845dc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h @@ -134,11 +134,11 @@ #define STM32_SW STM32_SW_PLL1_P_CK #define STM32_RTCSEL STM32_RTCSEL_NOCLK #define STM32_D1CPRE STM32_D1CPRE_DIV1 -#define STM32_D1HPRE STM32_D1HPRE_DIV4 -#define STM32_D1PPRE3 STM32_D1PPRE3_DIV1 -#define STM32_D2PPRE1 STM32_D2PPRE1_DIV1 -#define STM32_D2PPRE2 STM32_D2PPRE2_DIV1 -#define STM32_D3PPRE4 STM32_D3PPRE4_DIV1 +#define STM32_D1HPRE STM32_D1HPRE_DIV2 +#define STM32_D1PPRE3 STM32_D1PPRE3_DIV2 +#define STM32_D2PPRE1 STM32_D2PPRE1_DIV2 +#define STM32_D2PPRE2 STM32_D2PPRE2_DIV2 +#define STM32_D3PPRE4 STM32_D3PPRE4_DIV2 /* * Peripherals clocks static settings.