File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
targets/TARGET_STM/TARGET_STM32L4 Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 21
21
#include "mbed_assert.h"
22
22
#include "cmsis.h"
23
23
24
- /* Private constants --------------------------------------------------------*/
25
- /** @defgroup FLASH_Private_Constants FLASH Private Constants
26
- * @{
27
- */
28
- #define FLASH_SIZE_DATA_REGISTER ((uint32_t)0x1FFF75E0)
29
-
30
- #if defined (STM32L451xx ) || defined (STM32L452xx ) || defined (STM32L462xx )
31
- #define FLASH_SIZE ((((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) == 0xFFFF)) ? (0x200 << 10) : \
32
- (((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) & (0x0FFF)) << 10))
33
- #else
34
- #define FLASH_SIZE ((((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) == 0xFFFF)) ? (0x400 << 10) : \
35
- (((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) & (0x0FFF)) << 10))
36
- #endif
37
-
38
- #if defined (STM32L471xx ) || defined (STM32L475xx ) || defined (STM32L476xx ) || defined (STM32L485xx ) || defined (STM32L486xx )
39
- #define FLASH_BANK_SIZE (FLASH_SIZE >> 1)
40
- #else
41
- #define FLASH_BANK_SIZE (FLASH_SIZE)
42
- #endif
43
-
44
- #define FLASH_PAGE_SIZE ((uint32_t)0x800)
45
-
46
24
/**
47
25
* @brief Gets the page of a given address
48
26
* @param Addr: Address of the FLASH Memory
You can’t perform that action at this time.
0 commit comments