EXTI: Added function to get flag status

This commit is contained in:
Austin Palmer 2013-02-21 12:13:57 -08:00 committed by Piotr Esden-Tempski
parent af8c5a85d6
commit 31aa3b6f5a
2 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,7 @@ void exti_enable_request(u32 extis);
void exti_disable_request(u32 extis);
void exti_reset_request(u32 extis);
void exti_select_source(u32 exti, u32 gpioport);
u32 exti_get_flag_status(u32 exti);
END_DECLS

View File

@ -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.