Loading...
Searching...
No Matches
cpu_pm.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Freie Universität Berlin
3 * 2017 OTA keys S.A.
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
21#ifndef PERIPH_CPU_PM_H
22#define PERIPH_CPU_PM_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
35#define PM_NUM_MODES (3U)
36
41#define STM32_PM_IDLE (2U)
42#define STM32_PM_STOP (1U)
43#define STM32_PM_STANDBY (0U)
46#ifndef PM_EWUP_CONFIG
50#define PM_EWUP_CONFIG (0U)
51#endif
58
64
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* PERIPH_CPU_PM_H */
void pm_backup_regulator_off(void)
Disable the backup domain voltage regulator.
void pm_backup_regulator_on(void)
Enable the backup domain voltage regulator to retain backup register content during standby and VBAT ...
bool pm_backup_regulator_is_on(void)
Check whether the backup domain voltage regulator is on.