Skip to content

Commit

Permalink
stm32Cube: stm32h5 HAL DCACHE driver if instance exists
Browse files Browse the repository at this point in the history
Include the stm32H5 HAL DCACHE driver only if instance
DCACHE1 exists 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 05eb570 commit e3f9346
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ extern "C" {
* @{
*/

#if defined (DCACHE1)

/** @addtogroup DCACHE
* @{
*/
Expand Down Expand Up @@ -318,6 +320,8 @@ uint32_t HAL_DCACHE_GetError(DCACHE_HandleTypeDef *hdcache);
* @}
*/

#endif /* DCACHE1 */

/**
* @}
*/
Expand Down

0 comments on commit e3f9346

Please sign in to comment.