drivers: flash: stm32: fix FLASH_ constants renamed in hal_stm32
In hal_stm32 commit "update stm32h7rs to cube version V1.2.0"e5eba65b76
the constants FLASH_OPTKEY1/2 for the STM32H7RS have been renamed to FLASH_OPT_KEY1/2. For backward compatibility, 2 defines have been added to Legacy/stm32_hal_legacy.h, so that FLASH_OPTKEYx is an alias for FLASH_OPT_KEYx. However, in Zephyr's STM32 flash driver, the alias is defined the other way around since5dc537389a
, which leads to Twister build failures, for example https://github.com/zephyrproject-rtos/zephyr/actions/runs/14927867714/job/41936931524#step:12:1335 To fix the build issue, we can simply remove that alias in Zephyr, since it is no longer needed. Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
This commit is contained in:
parent
f411f48d37
commit
7e26a7130e
1 changed files with 0 additions and 2 deletions
|
@ -55,8 +55,6 @@ struct flash_stm32_priv {
|
|||
#define FLASH_CR_SNB FLASH_CR_SSN
|
||||
#define FLASH_CR_SNB_Pos FLASH_CR_SSN_Pos
|
||||
#define KEYR1 KEYR
|
||||
#define FLASH_OPT_KEY1 FLASH_OPTKEY1
|
||||
#define FLASH_OPT_KEY2 FLASH_OPTKEY2
|
||||
#endif /* CONFIG_SOC_SERIES_STM32H7RSX */
|
||||
|
||||
/* Differentiate between arm trust-zone non-secure/secure, and others. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue