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:
parent
17a62dd268
commit
b035209080
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue