Commit 05eb5703 authored by F. Ramu's avatar F. Ramu Committed by Erwan Gouriou
Browse files

stm32Cube: stm32h5 HAL SAI driver if SAI_block instance exists

Include the stm32H5 HAL SAI driver only if instance
SAI_block A or B  exist in the stm32H5 soc (not on stm32h50x)

Signed-off-by: default avatarF. Ramu <francois.ramu@st.com>
parent 89ef0a33
Loading
Loading
Loading
Loading
+4 −0
Changes for stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_sai.h: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ extern "C" {
  * @{
  */

#if defined(SAI1_Block_A) || defined(SAI1_Block_B)

/** @addtogroup SAI
  * @{
  */
@@ -957,6 +959,8 @@ uint32_t HAL_SAI_GetError(const SAI_HandleTypeDef *hsai);
  * @}
  */

#endif /* SAI1_Block_A || SAI1_Block_B */

/**
  * @}
  */