From 7c5f760978d3d82d960bda9229cac2bfa3b8d0ca Mon Sep 17 00:00:00 2001 From: "F. Ramu" Date: Thu, 16 Nov 2023 13:09:08 +0100 Subject: [PATCH] stm32Cube: stm32h5 LL DelayBlock driver if instance exists 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 --- stm32cube/stm32h5xx/drivers/include/stm32h5xx_ll_dlyb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stm32cube/stm32h5xx/drivers/include/stm32h5xx_ll_dlyb.h b/stm32cube/stm32h5xx/drivers/include/stm32h5xx_ll_dlyb.h index 4bf42e94b..73aeea2b6 100755 --- a/stm32cube/stm32h5xx/drivers/include/stm32h5xx_ll_dlyb.h +++ b/stm32cube/stm32h5xx/drivers/include/stm32h5xx_ll_dlyb.h @@ -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 @@ -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 */ /** * @}