libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
h7/syscfg.h
Go to the documentation of this file.
1
/** @defgroup syscfg_defines SYSCFG Defines
2
*
3
* @ingroup STM32H7xx_defines
4
*
5
* @brief <b>Defined Constants and Types for the STM32H7xx System Configuration controller </b>
6
*
7
* @version 1.0.0
8
*
9
* @author @htmlonly © @endhtmlonly 2019
10
* Brian Viele <vielster@allocor.tech>
11
*
12
* LGPL License Terms @ref lgpl_license
13
*/
14
/*
15
* This file is part of the libopencm3 project.
16
*
17
* This library is free software: you can redistribute it and/or modify
18
* it under the terms of the GNU Lesser General Public License as published by
19
* the Free Software Foundation, either version 3 of the License, or
20
* (at your option) any later version.
21
*
22
* This library is distributed in the hope that it will be useful,
23
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
* GNU Lesser General Public License for more details.
26
*
27
* You should have received a copy of the GNU Lesser General Public License
28
* along with this library. If not, see <http://www.gnu.org/licenses/>.
29
*/
30
31
#ifndef LIBOPENCM3_SYSCFG_H
32
#define LIBOPENCM3_SYSCFG_H
33
34
#include <
libopencm3/cm3/common.h
>
35
36
/**@{*/
37
/**@defgroup syscfg_registers SYSCFG Registers
38
 @{*/
39
#define SYSCFG_PMCR MMIO32(SYSCFG_BASE + 0x04)
40
#define SYSCFG_EXTICR(i) MMIO32(SYSCFG_BASE + 0x08 + (i)*4)
41
#define SYSCFG_EXTICR1 MMIO32(SYSCFG_BASE + 0x08)
42
#define SYSCFG_EXTICR2 MMIO32(SYSCFG_BASE + 0x0C)
43
#define SYSCFG_EXTICR3 MMIO32(SYSCFG_BASE + 0x10)
44
#define SYSCFG_EXTICR4 MMIO32(SYSCFG_BASE + 0x14)
45
#define SYSCFG_CFGR MMIO32(SYSCFG_BASE + 0x18)
46
#define SYSCFG_CCSR MMIO32(SYSCFG_BASE + 0x20)
47
#define SYSCFG_CCVR MMIO32(SYSCFG_BASE + 0x24)
48
#define SYSCFG_CCCR MMIO32(SYSCFG_BASE + 0x28)
49
#define SYSCFG_PWRCR MMIO32(SYSCFG_BASE + 0x2C)
50
#define SYSCFG_PKGR MMIO32(SYSCFG_BASE + 0x124)
51
#define SYSCFG_UR(n) MMIO32(SYSCFG_BASE + 0x300 + (4 * (n)))
52
53
#define SYSCFG_EXTICR_FIELDSIZE 4
54
/**@}*/
55
56
57
58
/** @defgroup syscfg_pwrcr PWRCR SYSCFG configuration register
59
* @ingroup syscfg_registers
60
* @{*/
61
#define SYSCFG_PWRCR_ODEN BIT0
62
/**@}*/
63
64
65
/**@}*/
66
67
#endif
common.h
include
libopencm3
stm32
h7
syscfg.h
Generated on Tue Mar 7 2023 16:11:55 for libopencm3 by
1.9.4