diff --git a/cpu/stm32l0/include/cpu_conf.h b/cpu/stm32l0/include/cpu_conf.h index bae780aef6d9ef6ba880d7eab0c640b2c0728df9..d8cb2b5ed42303acd4869aad8cb40dc549ac4a7b 100644 --- a/cpu/stm32l0/include/cpu_conf.h +++ b/cpu/stm32l0/include/cpu_conf.h @@ -79,20 +79,6 @@ 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 diff --git a/cpu/stm32l0/include/periph_cpu.h b/cpu/stm32l0/include/periph_cpu.h index edac77599ffe49c3e51c722025cecbeaedaa47d5..a586a7bfc48bac7127b68dc7b935f356fee01ff8 100644 --- a/cpu/stm32l0/include/periph_cpu.h +++ b/cpu/stm32l0/include/periph_cpu.h @@ -76,6 +76,20 @@ typedef struct { */ #define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 } +/** + * @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 diff --git a/cpu/stm32l1/include/cpu_conf.h b/cpu/stm32l1/include/cpu_conf.h index af78bf0516f48af5d2ece40c9dce5f1ef9168175..cb86a3bf531cc7ea6612740562f7c76b8f47ada5 100644 --- a/cpu/stm32l1/include/cpu_conf.h +++ b/cpu/stm32l1/include/cpu_conf.h @@ -93,18 +93,6 @@ 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 diff --git a/cpu/stm32l1/include/periph_cpu.h b/cpu/stm32l1/include/periph_cpu.h index 9144f9e5ffc6c7c6be604aa1a107da013f4660d9..2e453ac0f797d61e4d384d2eab76e2c3a54aa629 100644 --- a/cpu/stm32l1/include/periph_cpu.h +++ b/cpu/stm32l1/include/periph_cpu.h @@ -73,6 +73,18 @@ typedef enum { } adc_res_t; /** @} */ +/** + * @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