From d90ec98f52e8cec499754c5b6c30f298b21bfd03 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 31 May 2013 13:51:52 -0400 Subject: [PATCH] stm32: Add missing exti_get_flag_status --- lib/stm32/exti2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/stm32/exti2.c b/lib/stm32/exti2.c index bea2f4d4..7c48b911 100644 --- a/lib/stm32/exti2.c +++ b/lib/stm32/exti2.c @@ -78,6 +78,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.