AP_HAL_ChibiOS: correct OSPI clock in WSPIDevice

This commit is contained in:
Andy Piper 2023-03-29 20:22:49 +01:00 committed by Andrew Tridgell
parent 7516f04106
commit fee853dc7d
1 changed files with 4 additions and 4 deletions

View File

@ -68,19 +68,19 @@ WSPIDesc WSPIDeviceManager::device_table[] = { HAL_WSPI_DEVICE_LIST };
#endif
#if defined(STM32_WSPI_USE_OCTOSPI1) && STM32_WSPI_USE_OCTOSPI1
#if (STM32_OSPICLK < HAL_OSPI1_CLK)
#if (STM32_OCTOSPICLK < HAL_OSPI1_CLK)
#error "Flash speed must not be greater than OSPI Clock"
#endif
#if (STM32_OSPICLK % HAL_OSPI1_CLK)
#if (STM32_OCTOSPICLK % HAL_OSPI1_CLK)
#warning "OSPI clock not an integer multiple of flash speed"
#endif
#endif
#if defined(STM32_WSPI_USE_OCTOSPI2) && STM32_WSPI_USE_OCTOSPI2
#if (STM32_OSPICLK < HAL_OSPI2_CLK)
#if (STM32_OCTOSPICLK < HAL_OSPI2_CLK)
#error "Flash speed must not be greater than OSPI Clock"
#endif
#if (STM32_OSPICLK % HAL_OSPI2_CLK)
#if (STM32_OCTOSPICLK % HAL_OSPI2_CLK)
#warning "OSPI clock not an integer multiple of flash speed"
#endif
#endif