diff options
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/config.h b/include/config.h index 14670e0be6..d1a4dfc8d0 100644 --- a/include/config.h +++ b/include/config.h @@ -1677,7 +1677,7 @@ * could allow protected regions readback. * * TODO(crbug.com/888109): Implementation is currently only available on - * STM32H7, and requires more documentation. + * STM32H7 and STM32F4, and requires more documentation. */ #undef CONFIG_FLASH_READOUT_PROTECTION_AS_PSTATE @@ -4748,8 +4748,8 @@ #error "Flash readout protection and PSTATE may not work as intended." #endif -#ifndef CHIP_FAMILY_STM32H7 -#error "Flash readout protection only implemented on STM32H7." +#if !defined(CHIP_FAMILY_STM32H7) && !defined(CHIP_FAMILY_STM32F4) +#error "Flash readout protection only implemented on STM32H7 and STM32F4." #endif #endif /* CONFIG_FLASH_READOUT_PROTECTION_AS_PSTATE */ |