mirror of https://github.com/ARMmbed/mbed-os.git
fix STM32L1 FLASH_SIZE for cat.3 devices with DEV_ID 0x436
parent
149d444825
commit
c80da531a8
|
@ -121,7 +121,9 @@ typedef struct
|
|||
* @{
|
||||
*/
|
||||
|
||||
#define FLASH_SIZE (uint32_t)((*((uint32_t *)FLASHSIZE_BASE)&0xFFFFU) * 1024U)
|
||||
#define FLASH_SIZE_RAW (uint32_t)(*((uint32_t *)FLASHSIZE_BASE)&0xFFFFU)
|
||||
#define FLASH_SIZE (((FLASH_SIZE_RAW) == 0 ? 384 : ((FLASH_SIZE_RAW) == 1 ? 256 : (FLASH_SIZE_RAW))) * 1024)
|
||||
|
||||
#define FLASH_PAGE_SIZE (256U) /*!< FLASH Page Size in bytes */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue