From 31aa3b6f5a9e9afa4d1bc8661cbaef147af55f74 Mon Sep 17 00:00:00 2001 From: Austin Palmer Date: Thu, 21 Feb 2013 12:13:57 -0800 Subject: EXTI: Added function to get flag status --- lib/stm32/f1/exti.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/stm32/f1/exti.c') 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 @@ -65,6 +65,14 @@ void exti_reset_request(u32 extis) EXTI_PR |= 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. -- cgit v1.2.3