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

cpu/esp: move BACKUP* attributes to esp_common

This commit is contained in:
Gunar Schorcht 2020-04-03 11:27:36 +02:00
parent a0b77de3dc
commit 6cd9896ac0
3 changed files with 13 additions and 19 deletions

View File

@ -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 */
/** @} */

View File

@ -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
*/

View File

@ -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