EXTI: Added function to get flag status
This commit is contained in:
parent
af8c5a85d6
commit
31aa3b6f5a
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user