aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/f4/exti.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stm32/f4/exti.c')
-rw-r--r--lib/stm32/f4/exti.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stm32/f4/exti.c b/lib/stm32/f4/exti.c
index 1a2a7a1..586b66c 100644
--- a/lib/stm32/f4/exti.c
+++ b/lib/stm32/f4/exti.c
@@ -132,15 +132,15 @@ void exti_select_source(u32 exti, u32 gpioport)
/* Ensure that only valid EXTI lines are used. */
if (exti < EXTI4) {
SYSCFG_EXTICR1 &= ~(0x000F << shift);
- SYSCFG_EXTICR1 |= (~bits << shift);
+ SYSCFG_EXTICR1 |= (~bits << shift);
} else if (exti < EXTI8) {
SYSCFG_EXTICR2 &= ~(0x000F << shift);
- SYSCFG_EXTICR2 |= (~bits << shift);
+ SYSCFG_EXTICR2 |= (~bits << shift);
} else if (exti < EXTI12) {
SYSCFG_EXTICR3 &= ~(0x000F << shift);
- SYSCFG_EXTICR3 |= (~bits << shift);
+ SYSCFG_EXTICR3 |= (~bits << shift);
} else if (exti < EXTI16) {
SYSCFG_EXTICR4 &= ~(0x000F << shift);
- SYSCFG_EXTICR4 |= (~bits << shift);
+ SYSCFG_EXTICR4 |= (~bits << shift);
}
}