1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/periph_backup_ram: use BACKUP_RAM attribute

This commit is contained in:
Benjamin Valentin 2020-03-16 23:35:11 +01:00 committed by Benjamin Valentin
parent 69551d4a74
commit aff99b64e9

View File

@ -39,7 +39,7 @@ int main(void)
* counter anyway after wakeup, we did not sleep properly.
*/
static int counter_noinit __attribute__((section(".noinit")));
static int counter __attribute__((section(".backup.bss")));
static int counter BACKUP_RAM;
if (counter == 0) {
puts("\nBackup RAM test\n");