libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
g0/exti.h
Go to the documentation of this file.
1
/** @defgroup exti_defines EXTI Defines
2
*
3
* @ingroup STM32G0xx_defines
4
*
5
* @brief <b>Defined Constants and Types for the STM32G0xx EXTI Control</b>
6
*
7
* @version 1.0.0
8
*
9
* LGPL License Terms @ref lgpl_license
10
* */
11
/*
12
* This file is part of the libopencm3 project.
13
*
14
* This library is free software: you can redistribute it and/or modify
15
* it under the terms of the GNU Lesser General Public License as published by
16
* the Free Software Foundation, either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* This library is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU Lesser General Public License for more details.
23
*
24
* You should have received a copy of the GNU Lesser General Public License
25
* along with this library. If not, see <http://www.gnu.org/licenses/>.
26
*/
27
28
/**@{*/
29
#ifndef LIBOPENCM3_EXTI_H
30
#define LIBOPENCM3_EXTI_H
31
32
#include <
libopencm3/stm32/common/exti_common_all.h
>
33
#include <
libopencm3/stm32/common/exti_common_v2.h
>
34
35
/** EXTI External Interrupt Selection Registers */
36
#define EXTI_EXTICR(i) MMIO32(EXTI_BASE + 0x60 + (i)*4)
37
#define EXTI_EXTICR1 MMIO32(EXTI_BASE + 0x60)
38
#define EXTI_EXTICR2 MMIO32(EXTI_BASE + 0x64)
39
#define EXTI_EXTICR3 MMIO32(EXTI_BASE + 0x68)
40
#define EXTI_EXTICR4 MMIO32(EXTI_BASE + 0x6c)
41
42
/** EXTI Rising Edge Pending Register */
43
#define EXTI_RPR1 MMIO32(EXTI_BASE + 0x0c)
44
/** EXTI Falling Edge Pending Register */
45
#define EXTI_FPR1 MMIO32(EXTI_BASE + 0x10)
46
47
BEGIN_DECLS
48
49
END_DECLS
50
51
#else
52
/** @cond */
53
#warning "exti_common_v1.h should not be included directly, only via exti.h"
54
#endif
55
/** @endcond */
56
57
/**@}*/
END_DECLS
#define END_DECLS
Definition:
common.h:34
BEGIN_DECLS
#define BEGIN_DECLS
Definition:
common.h:33
exti_common_all.h
exti_common_v2.h
include
libopencm3
stm32
g0
exti.h
Generated on Tue Mar 7 2023 16:12:17 for libopencm3 by
1.9.4