diff --git a/cpu/esp32/include/cpu_conf.h b/cpu/esp32/include/cpu_conf.h index 3f36b9dc43..89038996d2 100644 --- a/cpu/esp32/include/cpu_conf.h +++ b/cpu/esp32/include/cpu_conf.h @@ -51,21 +51,9 @@ extern "C" { */ #define PRINTF_BUFSIZ 256 -/** - * @brief Memory marked with this attribute is retained during deep sleep - * and initialized with 0 on cold boot. - */ -#define BACKUP_RAM __attribute__((section(".rtc.bss"))) - -/** - * @brief Memory marked with this attribute is retained during deep sleep - * and initialized with user provided data on cold boot. - */ -#define BACKUP_RAM_DATA __attribute__((section(".rtc.data"))) - #ifdef __cplusplus } -#endif /* CPU_CONF_H */ +#endif #endif /* CPU_CONF_H */ /** @} */ diff --git a/cpu/esp8266/include/periph_cpu.h b/cpu/esp8266/include/periph_cpu.h index 492ec765f2..4ec7c46965 100644 --- a/cpu/esp8266/include/periph_cpu.h +++ b/cpu/esp8266/include/periph_cpu.h @@ -27,12 +27,6 @@ extern "C" { #endif -/** - * @brief Memory marked with this attribute is retained during deep sleep - */ -#define BACKUP_RAM __attribute__((section(".rtc.bss"))) -#define BACKUP_RAM_DATA __attribute__((section(".rtc.data"))) - /** * @brief Length of the CPU_ID in octets */ diff --git a/cpu/esp_common/include/cpu_conf_common.h b/cpu/esp_common/include/cpu_conf_common.h index 122571a198..6b4f9c9d37 100644 --- a/cpu/esp_common/include/cpu_conf_common.h +++ b/cpu/esp_common/include/cpu_conf_common.h @@ -32,6 +32,18 @@ #define HAVE_HEAP_STATS #endif +/** + * @brief Memory marked with this attribute is retained during deep sleep + * and initialized with 0 on cold boot. + */ +#define BACKUP_RAM __attribute__((section(".rtc.bss"))) + +/** + * @brief Memory marked with this attribute is retained during deep sleep + * and initialized with user provided data on cold boot. + */ +#define BACKUP_RAM_DATA __attribute__((section(".rtc.data"))) + #ifdef __cplusplus extern "C" { #endif