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
10#pragma once
11
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
34#define PM_NUM_MODES (3U)
35
40#define STM32_PM_IDLE (2U)
41#define STM32_PM_STOP (1U)
42#define STM32_PM_STANDBY (0U)
44
45#ifndef PM_EWUP_CONFIG
49#define PM_EWUP_CONFIG (0U)
50#endif
52
57
63
68
69#ifdef __cplusplus
70}
71#endif
72
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.