From 05eb5703e60c271b89f57c3a944ed51e68027646 Mon Sep 17 00:00:00 2001 From: "F. Ramu" Date: Thu, 16 Nov 2023 13:07:37 +0100 Subject: [PATCH] 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: F. Ramu --- stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_sai.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_sai.h b/stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_sai.h index e3d856d1c..25049024e 100755 --- a/stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_sai.h +++ b/stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_sai.h @@ -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 */ + /** * @} */