libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
syscfg_common_l1f234.h
Go to the documentation of this file.
1
/** @addtogroup syscfg_defines
2
*
3
* @author @htmlonly © @endhtmlonly 2011
4
* Fergus Noble <fergusnoble@gmail.com>
5
*
6
*/
7
/*
8
* This file is part of the libopencm3 project.
9
*
10
* Copyright (C) 2011 Fergus Noble <fergusnoble@gmail.com>
11
*
12
* This library is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public License
23
* along with this library. If not, see <http://www.gnu.org/licenses/>.
24
*/
25
26
/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY, BUT ONLY VIA SYSCFG.H
27
The order of header inclusion is important. syscfg.h includes the device
28
specific memorymap.h header before including this header file.*/
29
30
/** @cond */
31
#if defined(LIBOPENCM3_SYSCFG_H)
32
/** @endcond */
33
#ifndef LIBOPENCM3_SYSCFG_COMMON_L1F234_H
34
#define LIBOPENCM3_SYSCFG_COMMON_L1F234_H
35
36
/**@{*/
37
38
/* --- SYSCFG registers ---------------------------------------------------- */
39
40
#define SYSCFG_MEMRM MMIO32(SYSCFG_BASE + 0x00)
41
42
#define SYSCFG_PMC MMIO32(SYSCFG_BASE + 0x04)
43
44
/* External interrupt configuration registers [0..3] (SYSCFG_EXTICR[1..4]) */
45
#define SYSCFG_EXTICR(i) MMIO32(SYSCFG_BASE + 0x08 + (i)*4)
46
#define SYSCFG_EXTICR1 SYSCFG_EXTICR(0)
47
#define SYSCFG_EXTICR2 SYSCFG_EXTICR(1)
48
#define SYSCFG_EXTICR3 SYSCFG_EXTICR(2)
49
#define SYSCFG_EXTICR4 SYSCFG_EXTICR(3)
50
51
#define SYSCFG_CMPCR MMIO32(SYSCFG_BASE + 0x20)
52
53
/* --- SYSCFG_EXTICR Values -------------------------------------------------*/
54
55
#define SYSCFG_EXTICR_FIELDSIZE 4
56
57
#endif
58
/**@}*/
59
60
/** @cond */
61
#else
62
#warning "syscfg_common_l1f234.h should not be included explicitly,"
63
#warning "only via syscfg.h"
64
#endif
65
/** @endcond */
include
libopencm3
stm32
common
syscfg_common_l1f234.h
Generated on Tue Mar 7 2023 16:12:05 for libopencm3 by
1.9.4