AP_HAL_ChibiOS: QSPI prescaler is indexed from 1

This commit is contained in:
Andy Piper 2023-01-31 22:40:00 +00:00 committed by Andrew Tridgell
parent 4b4d2c52c8
commit 73da2162d2

View File

@ -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
/*