From 2bdc5cf6d7cc4a86a63fa90754b48c40592406ba Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 17 Feb 2021 13:32:12 +0100 Subject: [PATCH] cpu/stm32: fix FLASHPAGE_ERASE_STATE for stm32l4 --- cpu/stm32/include/cpu_conf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpu/stm32/include/cpu_conf.h b/cpu/stm32/include/cpu_conf.h index 35e10aaab7..d83500e7d5 100644 --- a/cpu/stm32/include/cpu_conf.h +++ b/cpu/stm32/include/cpu_conf.h @@ -116,8 +116,7 @@ extern "C" { #define FLASHPAGE_SIZE (128U) #endif -#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1) || \ - defined(CPU_FAM_STM32L4) +#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1) #define FLASHPAGE_ERASE_STATE (0x00U) #endif @@ -188,7 +187,6 @@ extern "C" { #endif - /* The minimum block size which can be written depends on the family. * However, the erase block is always FLASHPAGE_SIZE. */