commit | 7e26a7130ebbb051553f53513cba781f45b3167e | [log] [tgz] |
---|---|---|
author | Titouan Christophe <titouan.christophe@mind.be> | Fri May 09 15:54:11 2025 +0200 |
committer | Benjamin Cabé <kartben@gmail.com> | Mon May 12 13:31:23 2025 +0200 |
tree | 3247ddbc6794245cc69ed66c878823859a241a86 | |
parent | f411f48d37d006bcf88bca1de010016c00ee2a5f [diff] |
drivers: flash: stm32: fix FLASH_ constants renamed in hal_stm32 In hal_stm32 commit "update stm32h7rs to cube version V1.2.0" https://github.com/zephyrproject-rtos/hal_stm32/commit/e5eba65b7674d2883817203856b1d5eb8d08132d 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 since 5dc537389a4844cd36c5a29035e32b2c30d2e9fc, 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>