Skip to content

Commit c7dd95d

Browse files
committed
STM32F437: remove flash api implementation
STM32F4 already contains generic flash api implementation, use it.
1 parent 0e1c20d commit c7dd95d

File tree

2 files changed

+5
-185
lines changed

2 files changed

+5
-185
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/flash_api.c

Lines changed: 0 additions & 184 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/flash_data.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535

3636
#if DEVICE_FLASH
3737

38+
#if defined (STM32F427xx) || defined (STM32F437xx)
39+
#define FLASH_SIZE (uint32_t) 0x100000
40+
#endif
41+
3842
/* Exported types ------------------------------------------------------------*/
3943
/* Exported constants --------------------------------------------------------*/
4044
/* Exported macro ------------------------------------------------------------*/
@@ -53,4 +57,4 @@
5357
#define ADDR_FLASH_SECTOR_11 ((uint32_t)0x080E0000) /* Base @ of Sector 11, 128 Kbytes */
5458

5559
#endif
56-
#endif
60+
#endif

0 commit comments

Comments
 (0)