1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32l0: add definitions for internal eeprom

This commit is contained in:
Alexandre Abadie 2018-04-01 17:41:34 +02:00
parent 331ad0970d
commit fc9a853c20
2 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,7 @@
FEATURES_PROVIDED += periph_flash_common
FEATURES_PROVIDED += periph_flashpage
FEATURES_PROVIDED += periph_flashpage_raw
FEATURES_PROVIDED += periph_eeprom
FEATURES_PROVIDED += periph_hwrng
BOARDS_WITHOUT_HWRNG += nucleo-l031k6

View File

@ -79,6 +79,20 @@ extern "C" {
#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
}
#endif