Skip to content

Commit

Permalink
stm32Cube: stm32h5 LL DelayBlock driver if instance exists
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 <[email protected]>
  • Loading branch information
FRASTM authored and erwango committed Nov 17, 2023
1 parent e3f9346 commit 7c5f760
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 7c5f760

Please sign in to comment.