aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson2012-10-22 22:37:44 +0000
committerKarl Palsson2012-10-22 22:37:44 +0000
commite55a9e387560924a157d60b29a3aa49300b9b456 (patch)
treec1f1d4115797022a171cbcd9a30933c4280716ac
parent4e4496f70d00fe24b2c5d594d6500f537eeb6478 (diff)
Missing EXTI ports and flag numbers for F4
(Also missing for forthcoming L1)
-rw-r--r--include/libopencm3/stm32/exti.h3
-rw-r--r--lib/stm32/f4/exti.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/exti.h b/include/libopencm3/stm32/exti.h
index 7645825..48065b9 100644
--- a/include/libopencm3/stm32/exti.h
+++ b/include/libopencm3/stm32/exti.h
@@ -53,6 +53,9 @@
#define EXTI17 (1 << 17)
#define EXTI18 (1 << 18)
#define EXTI19 (1 << 19)
+#define EXTI20 (1 << 20)
+#define EXTI21 (1 << 21)
+#define EXTI22 (1 << 22)
/* Trigger types */
typedef enum trigger_e {
diff --git a/lib/stm32/f4/exti.c b/lib/stm32/f4/exti.c
index 155c21f..f69e99e 100644
--- a/lib/stm32/f4/exti.c
+++ b/lib/stm32/f4/exti.c
@@ -127,6 +127,12 @@ void exti_select_source(u32 exti, u32 gpioport)
case GPIOG:
bits = 0x9;
break;
+ case GPIOH:
+ bits = 0x8;
+ break;
+ case GPIOI:
+ bits = 0x7;
+ break;
}
/* Ensure that only valid EXTI lines are used. */