OpenMPTL - STM32F10X
C++ Microprocessor Template Library
arch
arm
cortex
stm32
f1
include
arch
pwr.hpp
Go to the documentation of this file.
1
/*
2
* OpenMPTL - C++ Microprocessor Template Library
3
*
4
* Copyright (C) 2012-2017 Axel Burri <axel@tty0.ch>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*
19
*/
20
21
#ifndef ARCH_PWR_HPP_INCLUDED
22
#define ARCH_PWR_HPP_INCLUDED
23
24
#include <
arch/reg/pwr.hpp
>
25
26
namespace
mptl
{
27
28
class
pwr
29
{
30
public
:
31
32
static
void
disable_backup_domain_write_protection
(
void
) {
33
PWR::CR::DBP::set
();
34
}
35
};
36
37
}
// namespace mptl
38
39
#endif // ARCH_PWR_HPP_INCLUDED
regmask< Tp,((1ul<< width) - 1)<< offset,((1ul<< width) - 1)<< offset >::set
static __always_inline void set(void)
mptl::pwr::disable_backup_domain_write_protection
static void disable_backup_domain_write_protection(void)
Definition:
pwr.hpp:32
pwr.hpp
mptl
mptl::pwr
Definition:
pwr.hpp:28
Generated by
1.8.13