From 8f59bacb92cb705d79f08f29f4d64c0a774ab78f Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Mon, 3 Aug 2015 15:07:20 -0700 Subject: stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7 --- stmhal/flash.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'stmhal/flash.c') diff --git a/stmhal/flash.c b/stmhal/flash.c index 54f5f85c6..1b68e0d94 100644 --- a/stmhal/flash.c +++ b/stmhal/flash.c @@ -28,13 +28,11 @@ #include "flash.h" -#if defined(STM32F7) +#if defined(MCU_SERIES_F7) + // FLASH_FLAG_PGSERR (Programming Sequence Error) was renamed to // FLASH_FLAG_ERSERR (Erasing Sequence Error) in STM32F7 #define FLASH_FLAG_PGSERR FLASH_FLAG_ERSERR -#endif - -#if defined(STM32F7) /* Base address of the Flash sectors */ #define ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) /* Base @ of Sector 0, 32 Kbytes */ @@ -68,7 +66,7 @@ #define ADDR_FLASH_END ((uint32_t)0x08100000) /* 1 Mbytes total */ #endif -#endif +#endif // MCU_SERIES_F7 static const uint32_t flash_info_table[26] = { ADDR_FLASH_SECTOR_0, FLASH_SECTOR_0, -- cgit v1.2.3