cpu/cortexm_common: define BACKUP_RAM attribute
This commit is contained in:
parent
7be303f12f
commit
a11bcdcd5c
@ -73,6 +73,20 @@ extern "C" {
|
||||
*/
|
||||
#define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".puf")))
|
||||
|
||||
#if CPU_HAS_BACKUP_RAM || DOXYGEN
|
||||
/**
|
||||
* @brief Memory marked with this attribute is retained during deep sleep
|
||||
* and initialized with 0 on cold boot.
|
||||
*/
|
||||
#define BACKUP_RAM __attribute__((section(".backup.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(".backup.data")))
|
||||
#endif /* CPU_HAS_BACKUP_RAM */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user