aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/STM32F4xx/hal_ext_lld_isr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/hal_ext_lld_isr.c b/os/hal/ports/STM32/STM32F4xx/hal_ext_lld_isr.c
index dd89d4f63..b44374074 100644
--- a/os/hal/ports/STM32/STM32F4xx/hal_ext_lld_isr.c
+++ b/os/hal/ports/STM32/STM32F4xx/hal_ext_lld_isr.c
@@ -212,7 +212,7 @@ OSAL_IRQ_HANDLER(Vector44) {
OSAL_IRQ_PROLOGUE();
pr = EXTI->PR;
- pr = EXTI->IMR & (1U << 16);
+ pr &= EXTI->IMR & (1U << 16);
EXTI->PR = pr;
if (pr & (1U << 16))
EXTD1.config->channels[16].cb(&EXTD1, 16);
@@ -231,7 +231,7 @@ OSAL_IRQ_HANDLER(VectorE4) {
OSAL_IRQ_PROLOGUE();
pr = EXTI->PR;
- pr = EXTI->IMR & (1U << 17);
+ pr &= EXTI->IMR & (1U << 17);
EXTI->PR = pr;
if (pr & (1U << 17))
EXTD1.config->channels[17].cb(&EXTD1, 17);