cpu_backup_ram.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2022 Otto-von-Guericke-Universität Magdeburg
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
25 #define BACKUP_RAM_HAS_INIT 1
26 
30 void backup_ram_init(void);
31 
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
void backup_ram_init(void)
Enable backup RAM access.
bool cpu_woke_from_backup(void)
Returns true if the CPU woke up from deep sleep (backup/standby)