Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions stm32cube/stm32h5xx/drivers/include/Legacy/stm32_hal_legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -4405,6 +4405,25 @@ extern "C" {
* @}
*/

/** @defgroup HAL_XSPI_Aliased_Defines HAL XSPI Aliased Defines maintained for legacy purpose
* @{
*/
#if defined(STM32H5)
/* STM32H5 uses OCTOSPI naming for XSPI peripherals - add compatibility macros */
#if !defined(XSPI1) && defined(OCTOSPI1)
#define XSPI1 OCTOSPI1
#endif /* !XSPI1 && OCTOSPI1 */
#if !defined(XSPI1_NS) && defined(OCTOSPI1_NS)
#define XSPI1_NS OCTOSPI1_NS
#endif /* !XSPI1_NS && OCTOSPI1_NS */
#if !defined(XSPI1_S) && defined(OCTOSPI1_S)
#define XSPI1_S OCTOSPI1_S
#endif /* !XSPI1_S && OCTOSPI1_S */
#endif /* STM32H5 */
/**
* @}
*/

/** @defgroup HAL_PPP_Aliased_Macros HAL PPP Aliased Macros maintained for legacy purpose
* @{
*/
Expand Down