diff options
author | Keith Packard <keithp@keithp.com> | 2016-06-29 12:55:30 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-06-29 19:17:45 -0700 |
commit | c6c250711355ae8060e956e786702be250ef4527 (patch) | |
tree | 09198579b6a0d9c4610b25615b30750e369fd949 | |
parent | a35424cd48205af89ba023db979959dc75b06706 (diff) |
altos/stm: clean up ao_exti_enable
Was computing (1 << pin) twice for no good reason.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/stm/ao_exti_stm.c | 2 |
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 |