Skip to content

Commit e513e64

Browse files
bcostmadbridge
authored andcommitted
STM32L1: allow redefinition of FLASH_SIZE macro
1 parent 97676e4 commit e513e64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_flash.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ typedef struct
137137
* @{
138138
*/
139139

140+
#ifndef FLASH_SIZE // MBED
140141
#define FLASH_SIZE (uint32_t)((*((uint32_t *)FLASHSIZE_BASE)&0xFFFFU) * 1024U)
142+
#endif // MBED
141143
#define FLASH_PAGE_SIZE (256U) /*!< FLASH Page Size in bytes */
142-
#endif
143144

144145
/**
145146
* @}

0 commit comments

Comments
 (0)