summaryrefslogtreecommitdiff
path: root/src/stm/ao_exti_stm.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2016-07-04 23:47:24 +0200
committerBdale Garbee <bdale@gag.com>2016-07-04 23:47:24 +0200
commit2e26d1ab42163988dc26b06b016c3b05efe17659 (patch)
tree5736db47fa979abb0e37b0fc3b956cd6cdbe9405 /src/stm/ao_exti_stm.c
parent639e461ded29a48c155afea12171cbfc191ccfd7 (diff)
parent65ed2f588ca596fe9aa559bebd590a2a11b9859b (diff)
Merge branch 'master' into branch-1.6
Diffstat (limited to 'src/stm/ao_exti_stm.c')
-rw-r--r--src/stm/ao_exti_stm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_exti_stm.c b/src/stm/ao_exti_stm.c
index 35958cf8..925f9a22 100644
--- a/src/stm/ao_exti_stm.c
+++ b/src/stm/ao_exti_stm.c
@@ -144,7 +144,7 @@ ao_exti_enable(struct stm_gpio *gpio, uint8_t pin) {
uint32_t mask = (1 << pin);
(void) gpio;
stm_exti.pr = mask;
- stm_exti.imr |= (1 << pin);
+ stm_exti.imr |= mask;
}
void