Skip to content

Commit

Permalink
stm32Cube: stm32h5 HAL SAI driver if SAI_block instance exists
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
FRASTM authored and erwango committed Nov 17, 2023
1 parent 89ef0a3 commit 05eb570
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_sai.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ extern "C" {
* @{
*/

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

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

#endif /* SAI1_Block_A || SAI1_Block_B */

/**
* @}
*/
Expand Down

0 comments on commit 05eb570

Please sign in to comment.