projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altos/stm: clean up ao_exti_enable
[fw/altos]
/
src
/
stm
/
ao_exti_stm.c
diff --git
a/src/stm/ao_exti_stm.c
b/src/stm/ao_exti_stm.c
index 35958cf845632e37cb9c21781e7af057bd0bf173..925f9a222f50020cf9f82bad6ac0c34b9ba026da 100644
(file)
--- 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