From 73da2162d26d269ffad5153b83b9aa5737910c46 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Tue, 31 Jan 2023 22:40:00 +0000 Subject: [PATCH] AP_HAL_ChibiOS: QSPI prescaler is indexed from 1 --- libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h index 109d044b2d..82b4efa8ef 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h @@ -612,7 +612,7 @@ #if STM32_WSPI_USE_QUADSPI1 #define STM32_WSPI_QUADSPI1_MDMA_CHANNEL STM32_MDMA_CHANNEL_ID_ANY #define STM32_WSPI_QUADSPI1_MDMA_PRIORITY 1 -#define STM32_WSPI_QUADSPI1_PRESCALER_VALUE ((STM32_QSPICLK / HAL_QSPI1_CLK) - 1) +#define STM32_WSPI_QUADSPI1_PRESCALER_VALUE (STM32_QSPICLK / HAL_QSPI1_CLK) #endif /*