libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
pwr.c
Go to the documentation of this file.
1
/** @defgroup pwr-file PWR
2
3
@ingroup LPC17xx
4
5
@brief <b>libopencm3 LPC17xx Power Control</b>
6
7
@version 1.0.0
8
9
@author @htmlonly © @endhtmlonly 2013 Silvio Gissi <silvio.gissi@outlook.com>
10
11
LGPL License Terms @ref lgpl_license
12
*/
13
14
/*
15
* This file is part of the libopencm3 project.
16
*
17
* Copyright (C) 2013 Silvio Gissi <silvio.gissi@outlook.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
/**@{*/
34
35
#include <
libopencm3/lpc17xx/pwr.h
>
36
37
void
pwr_enable_peripherals
(uint32_t peripherals)
38
{
39
PWR_PCONP
|= peripherals;
40
}
41
42
void
pwr_disable_peripherals
(uint32_t peripherals)
43
{
44
PWR_PCONP
&= ~peripherals;
45
}
46
47
/**@}*/
48
pwr_enable_peripherals
void pwr_enable_peripherals(uint32_t peripherals)
Definition:
pwr.c:37
pwr_disable_peripherals
void pwr_disable_peripherals(uint32_t peripherals)
Definition:
pwr.c:42
pwr.h
PWR_PCONP
#define PWR_PCONP
Definition:
pwr.h:43
lib
lpc17xx
pwr.c
Generated on Tue Mar 7 2023 16:12:59 for libopencm3 by
1.9.4