Skip to content

Commit

Permalink
stm32Cube: stm32h5 HAL DelayBlock driver if instance exist
Browse files Browse the repository at this point in the history
Include the stm32H5 HAL DLYB driver only if instance
SDMMC or OCTOSPI exist in the stm32H5 soc (not on stm32h50x)

Signed-off-by: F. Ramu <francois.ramu@st.com>
  • Loading branch information
FRASTM committed Nov 16, 2023
1 parent 52d01f8 commit 518eb32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stm32cube/stm32h5xx/drivers/include/stm32h5xx_ll_dlyb.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern "C" {
* @{
*/

#if defined(HAL_SD_MODULE_ENABLED) || defined(HAL_OSPI_MODULE_ENABLED) || defined(HAL_XSPI_MODULE_ENABLED)
#if defined(DLYB_SDMMC1) || defined(DLYB_SDMMC2) || defined(DLYB_OCTOSPI1) || defined(DLYB_OCTOSPI2)

/* Exported types ------------------------------------------------------------*/
/** @defgroup DLYB_LL DLYB
Expand Down Expand Up @@ -128,7 +128,7 @@ uint32_t LL_DLYB_GetClockPeriod(DLYB_TypeDef *DLYBx, LL_DLYB_CfgTypeDef *pdlyb_c
* @}
*/

#endif /* HAL_SD_MODULE_ENABLED || HAL_OSPI_MODULE_ENABLED || HAL_XSPI_MODULE_ENABLED */
#endif /* DLYB_SDMMC1 || DLYB_SDMMC2 || DLYB_OCTOSPI1 || DLYB_OCTOSPI2 */

/**
* @}
Expand Down

0 comments on commit 518eb32

Please sign in to comment.