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 */ + /** * @} */