libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
syscfg.h
Go to the documentation of this file.
1
/** @defgroup syscfg_defines SYSCFG Defines
2
*
3
* @ingroup STM32G4xx_defines
4
*
5
* @brief Defined Constants and Types for the STM32G4xx Sysconfig
6
*
7
* @version 1.0.0
8
*
9
* LGPL License Terms @ref lgpl_license
10
* @{
11
*
12
*/
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
#pragma once
32
33
/** @defgroup syscfg_registers SYSCFG registers
34
@{*/
35
36
#define SYSCFG_MEMRM MMIO32(SYSCFG_BASE + 0x00)
37
38
#define SYSCFG_PMC MMIO32(SYSCFG_BASE + 0x04)
39
40
/** External interrupt configuration registers [0..3] (SYSCFG_EXTICR[1..4]) */
41
#define SYSCFG_EXTICR(i) MMIO32(SYSCFG_BASE + 0x08 + (i)*4)
42
#define SYSCFG_EXTICR1 SYSCFG_EXTICR(0)
43
#define SYSCFG_EXTICR2 SYSCFG_EXTICR(1)
44
#define SYSCFG_EXTICR3 SYSCFG_EXTICR(2)
45
#define SYSCFG_EXTICR4 SYSCFG_EXTICR(3)
46
47
#define SYSCFG_SWPR MMIO32(SYSCFG_BASE + 0x20)
48
/**@}*/
49
50
#define SYSCFG_EXTICR_FIELDSIZE 4
51
52
/**@}*/
include
libopencm3
stm32
g4
syscfg.h
Generated on Tue Mar 7 2023 16:12:22 for libopencm3 by
1.9.4