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.