From 4d574e7a6041bf1750ad2e1d6b54178f09d636b5 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Sat, 17 Nov 2018 17:29:29 +0000 Subject: [PATCH] Merged in antmerlino/nuttx/stm32f2-write-protect (pull request #762) arch/arm/stm32: stm32_flash_writeprotect supported the same for STM32F20XX as STM32F4XXX Approved-by: GregoryN --- arch/arm/src/stm32/chip/stm32_flash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/chip/stm32_flash.h b/arch/arm/src/stm32/chip/stm32_flash.h index 0a17a78026..0e39d36080 100644 --- a/arch/arm/src/stm32/chip/stm32_flash.h +++ b/arch/arm/src/stm32/chip/stm32_flash.h @@ -498,7 +498,7 @@ void stm32_flash_lock(void); void stm32_flash_unlock(void); -#ifdef CONFIG_STM32_STM32F4XXX +#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX) int stm32_flash_writeprotect(size_t page, bool enabled); #endif