STMicroelectronics / stm32h7xx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32H7 series.
BSD 3-Clause "New" or "Revised" License
86 stars 36 forks source link

ll_delayblock is available when hal qspi module is enable instead of ospi #57

Open clementfumey opened 1 month ago

clementfumey commented 1 month ago

Describe the set-up Seedstudio Wio Lite AI (based on STM32H725AEIX ) VSCode with GCC

Describe the bug

stm32h7xx_ll_delayblock.c has the following code :

#if defined(HAL_SD_MODULE_ENABLED) || defined(HAL_QSPI_MODULE_ENABLED)

that made it unusable for OSPI when HAL_OSPI_MODULE_ENABLED is 1

How To Reproduce Not applicable

Additional context There is only 4 DLYB_TypeDef in stm32h725xx.h 2 for OSPI, 2 for SDMMC so my guess is that the correct #if defined in stm32h7xx_ll_delayblock.c should be #if defined(HAL_SD_MODULE_ENABLED) || defined(HAL_OSPI_MODULE_ENABLED)

KRASTM commented 1 month ago

ST Internal Reference: 182460