STM32L1: allow redefinition of FLASH_SIZE macro

pull/6497/head
bcostm 2018-04-03 14:23:14 +02:00
parent 8c0ff8be79
commit 293b3bfdc0
1 changed files with 2 additions and 1 deletions

View File

@ -137,9 +137,10 @@ typedef struct
* @{
*/
#ifndef FLASH_SIZE // MBED
#define FLASH_SIZE (uint32_t)((*((uint32_t *)FLASHSIZE_BASE)&0xFFFFU) * 1024U)
#endif // MBED
#define FLASH_PAGE_SIZE (256U) /*!< FLASH Page Size in bytes */
#endif
/**
* @}