libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
exti_common_v1.h
Go to the documentation of this file.
1/** @addtogroup exti_defines */
2#pragma once
3
4/*
5 * This file is part of the libopencm3 project.
6 *
7 * This library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21/** @cond */
22#if defined(LIBOPENCM3_EXTI_H)
23/** @endcond */
24
25/**@{*/
26
27/* --- EXTI registers ------------------------------------------------------ */
28
29/** @defgroup exti_registers EXTI Registers
30@{*/
31/** EXTI Interrupt Mask Registers */
32#define EXTI_IMR MMIO32(EXTI_BASE + 0x00)
33/** EXTI Event Mask Register */
34#define EXTI_EMR MMIO32(EXTI_BASE + 0x04)
35/** EXTI Rising Trigger Selection Register */
36#define EXTI_RTSR MMIO32(EXTI_BASE + 0x08)
37/** EXTI Falling Triger Selection Register */
38#define EXTI_FTSR MMIO32(EXTI_BASE + 0x0c)
39/** EXTI Software Interrupt Event Register */
40#define EXTI_SWIER MMIO32(EXTI_BASE + 0x10)
41/** EXTI Pending Register */
42#define EXTI_PR MMIO32(EXTI_BASE + 0x14)
43/**@}*/
44
46
48
49/**@}*/
50
51/** @cond */
52#else
53#warning "exti_common_v1.h should not be included directly, only via exti.h"
54#endif
55/** @endcond */
#define END_DECLS
Definition: common.h:34
#define BEGIN_DECLS
Definition: common.h:33