diff options
author | Dave Hylands <dhylands@gmail.com> | 2015-08-03 15:07:20 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-08-07 08:52:42 +0100 |
commit | 8f59bacb92cb705d79f08f29f4d64c0a774ab78f (patch) | |
tree | d58104222746d8f1a61ebb7297a9501cbf0dcdfd /stmhal/flash.c | |
parent | be66a9ecf60eac18e08eda7bddf4b3481459c9f2 (diff) | |
download | micropython-8f59bacb92cb705d79f08f29f4d64c0a774ab78f.tar.gz micropython-8f59bacb92cb705d79f08f29f4d64c0a774ab78f.zip |
stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7
Diffstat (limited to 'stmhal/flash.c')
-rw-r--r-- | stmhal/flash.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/stmhal/flash.c b/stmhal/flash.c index 54f5f85c69..1b68e0d945 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, |