Skip to content

Commit 7538026

Browse files
committed
Fix DLYB not defined in hal for stm32h7rs
Signed-off-by: Titouan Christophe <[email protected]>
1 parent 612ea67 commit 7538026

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/flash/flash_stm32_xspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,6 +2163,7 @@ static int flash_stm32_xspi_init(const struct device *dev)
21632163

21642164
#endif /* XSPIM */
21652165

2166+
#if defined(XSPI_DCR1_DLYBYP)
21662167
#if defined(DLYB_XSPI1) || defined(DLYB_XSPI2) || defined(DLYB_OCTOSPI1) || defined(DLYB_OCTOSPI2)
21672168
/* XSPI delay block init Function */
21682169
HAL_XSPI_DLYB_CfgTypeDef xspi_delay_block_cfg = {0};
@@ -2178,6 +2179,7 @@ static int flash_stm32_xspi_init(const struct device *dev)
21782179

21792180
LOG_DBG("Delay Block Init");
21802181
#endif /* DLYB_ */
2182+
#endif /* XSPI_DCR1_DLYBYP */
21812183

21822184
#if STM32_XSPI_USE_DMA
21832185
/* Configure and enable the DMA channels after XSPI config */

0 commit comments

Comments
 (0)