Skip to content

Commit 3a3e98e

Browse files
committed
Removing duplicate defines
Those defines are already available in STM32 L4 SDK and don't need to be (re)defined here.
1 parent 39bc4f9 commit 3a3e98e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

targets/TARGET_STM/TARGET_STM32L4/flash_api.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,6 @@
2121
#include "mbed_assert.h"
2222
#include "cmsis.h"
2323

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-
4624
/**
4725
* @brief Gets the page of a given address
4826
* @param Addr: Address of the FLASH Memory

0 commit comments

Comments
 (0)