libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
pwr.h
Go to the documentation of this file.
1/** @defgroup pwr_defines PWR Defines
2
3@brief <b>Defined Constants and Types for the STM32F2xx PWR Control</b>
4
5@ingroup STM32F2xx_defines
6
7@version 1.0.0
8
9@date 4 March 2013
10
11LGPL License Terms @ref lgpl_license
12 */
13
14/*
15 * This file is part of the libopencm3 project.
16 *
17 * Copyright (C) 2011 Fergus Noble <fergusnoble@gmail.com>
18 *
19 * This library is free software: you can redistribute it and/or modify
20 * it under the terms of the GNU Lesser General Public License as published by
21 * the Free Software Foundation, either version 3 of the License, or
22 * (at your option) any later version.
23 *
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU Lesser General Public License for more details.
28 *
29 * You should have received a copy of the GNU Lesser General Public License
30 * along with this library. If not, see <http://www.gnu.org/licenses/>.
31 */
32
33#ifndef LIBOPENCM3_PWR_H
34#define LIBOPENCM3_PWR_H
35
36#include <libopencm3/stm32/common/pwr_common_v1.h>
37
38/*
39 * This file extends the common STM32 version with definitions only
40 * applicable to the STM32F2 series of devices.
41 */
42
43/* --- PWR_CR values ------------------------------------------------------- */
44
45/* Bits [31:10]: Reserved, always read as 0. */
46
47/* FPDS: Flash power down in stop mode */
48#define PWR_CR_FPDS (1 << 9)
49
50/* --- PWR_CSR values ------------------------------------------------------ */
51
52/* Bits [31:10]: Reserved, always read as 0. */
53
54/* BRE: Backup regulator enable */
55#define PWR_CSR_BRE (1 << 9)
56
57/* Bits [7:4]: Reserved, always read as 0. */
58
59#endif