drivers: exti_stm32: fix clear pending exti

Pending bit gets cleared by writing 1 into it, so don't use the previous
value and just write the line bit offset instead.

Change-Id: I4c88016bf53327b2670a144d3b994945f26fc002
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>¬
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This commit is contained in:
Ricardo Salveti 2016-09-19 21:38:39 -03:00 committed by Anas Nashif
commit b035209080

View file

@ -115,7 +115,7 @@ static inline void stm32_exti_clear_pending(int line)
{
volatile struct stm32_exti *exti = AS_EXTI(EXTI_BASE);
exti->pr |= 1 << line;
exti->pr = 1 << line;
}
void stm32_exti_trigger(int line, int trigger)