Skip to content
Snippets Groups Projects
Commit fc9a853c authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

cpu/stm32l0: add definitions for internal eeprom

parent 331ad097
No related branches found
No related tags found
No related merge requests found
FEATURES_PROVIDED += periph_flash_common FEATURES_PROVIDED += periph_flash_common
FEATURES_PROVIDED += periph_flashpage FEATURES_PROVIDED += periph_flashpage
FEATURES_PROVIDED += periph_flashpage_raw FEATURES_PROVIDED += periph_flashpage_raw
FEATURES_PROVIDED += periph_eeprom
FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_hwrng
BOARDS_WITHOUT_HWRNG += nucleo-l031k6 BOARDS_WITHOUT_HWRNG += nucleo-l031k6
......
...@@ -79,6 +79,20 @@ extern "C" { ...@@ -79,6 +79,20 @@ extern "C" {
#define FLASHPAGE_RAW_ALIGNMENT (4U) #define FLASHPAGE_RAW_ALIGNMENT (4U)
/** @} */ /** @} */
/**
* @name EEPROM configuration
* @{
*/
#define EEPROM_START_ADDR (0x08080000)
#if defined(CPU_MODEL_STM32L073RZ) || defined(CPU_MODEL_STM32L072CZ)
#define EEPROM_SIZE (6144U) /* 6kB */
#elif defined(CPU_MODEL_STM32L053R8)
#define EEPROM_SIZE (2048U) /* 2kB */
#elif defined(CPU_MODEL_STM32L031K6)
#define EEPROM_SIZE (1024U) /* 1kB */
#endif
/** @} */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment