aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/f1/exti.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stm32/f1/exti.c')
-rw-r--r--lib/stm32/f1/exti.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/stm32/f1/exti.c b/lib/stm32/f1/exti.c
index ecb58b8..5086274 100644
--- a/lib/stm32/f1/exti.c
+++ b/lib/stm32/f1/exti.c
@@ -66,6 +66,14 @@ void exti_reset_request(u32 extis)
}
/*
+ * Check the flag of a given EXTI interrupt.
+ * */
+u32 exti_get_flag_status(u32 exti)
+{
+ return EXTI_PR & exti;
+}
+
+/*
* Remap an external interrupt line to the corresponding pin on the
* specified GPIO port.
*