From 6487c46562831c36292da4d9e5b44c82f5b6187e Mon Sep 17 00:00:00 2001 From: Martin Luessi Date: Thu, 1 Jun 2023 08:35:31 -0700 Subject: [PATCH] AP_HAL_ChibiOS: Allow custom STM32_QSPISEL for H7 --- libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h index 360b1f247a..1723d2b694 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h @@ -288,7 +288,9 @@ #define STM32_CKPERSEL STM32_CKPERSEL_HSE_CK #endif #define STM32_SDMMCSEL STM32_SDMMCSEL_PLL1_Q_CK +#ifndef STM32_QSPISEL #define STM32_QSPISEL STM32_QSPISEL_PLL2_R_CK +#endif #define STM32_FMCSEL STM32_QSPISEL_HCLK #define STM32_SWPSEL STM32_SWPSEL_PCLK1 #define STM32_FDCANSEL STM32_FDCANSEL_PLL1_Q_CK