stm32: Add missing exti_get_flag_status

This commit is contained in:
Ben Gamari 2013-05-31 13:51:52 -04:00 committed by Piotr Esden-Tempski
parent e5a3a582fd
commit d90ec98f52

View File

@ -78,6 +78,14 @@ void exti_reset_request(u32 extis)
EXTI_PR = 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 * Remap an external interrupt line to the corresponding pin on the
* specified GPIO port. * specified GPIO port.