cpu/stm32l1: add definitions for internal eeprom

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

View File

@ -1,5 +1,6 @@
FEATURES_PROVIDED += periph_flash_common
FEATURES_PROVIDED += periph_flashpage
FEATURES_PROVIDED += periph_flashpage_raw
FEATURES_PROVIDED += periph_eeprom
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -93,6 +93,18 @@ extern "C" {
#define FLASHPAGE_RAW_ALIGNMENT (4U)
/** @} */
/**
* @name EEPROM configuration
* @{
*/
#define EEPROM_START_ADDR (0x08080000)
#if defined(CPU_MODEL_STM32L152RE)
#define EEPROM_SIZE (16384UL) /* 16kB */
#elif defined(CPU_MODEL_STM32L151RC)
#define EEPROM_SIZE (8192U) /* 8kB */
#endif
/** @} */
#ifdef __cplusplus
}
#endif