aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include/libmaple/exti.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 21:01:18 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 22:45:41 -0400
commitd036d2f4e2d4475037294304e7c04a6db6b3167d (patch)
tree01ecb54da04c3d3a2fbd4e6ef3a46277f07a0483 /libmaple/include/libmaple/exti.h
parent2bdf250ecdd0a30aae6f582aa92e5b3e53835a67 (diff)
downloadlibrambutan-d036d2f4e2d4475037294304e7c04a6db6b3167d.tar.gz
librambutan-d036d2f4e2d4475037294304e7c04a6db6b3167d.zip
STM32F2: Add EXTI support.
Add series headers to keep the base pointers, and (on F2) use SYSCFG to tell exti_do_select() where the EXTI control registers are. No surprises. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/include/libmaple/exti.h')
-rw-r--r--libmaple/include/libmaple/exti.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmaple/include/libmaple/exti.h b/libmaple/include/libmaple/exti.h
index 5259a44..3800b4a 100644
--- a/libmaple/include/libmaple/exti.h
+++ b/libmaple/include/libmaple/exti.h
@@ -38,6 +38,7 @@
extern "C"{
#endif
+#include <series/exti.h> /* provides EXTI_BASE */
#include <libmaple/libmaple_types.h>
/*
@@ -54,9 +55,6 @@ typedef struct exti_reg_map {
__io uint32 PR; /**< Pending register */
} exti_reg_map;
-/** EXTI register map base pointer */
-#define EXTI_BASE ((struct exti_reg_map*)0x40010400)
-
/*
* Types: exti_num, exti_cfg, exti_trigger_mode.
*