summaryrefslogtreecommitdiff
path: root/chip/stm32/gpio-stm32l.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/gpio-stm32l.c')
-rw-r--r--chip/stm32/gpio-stm32l.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/stm32/gpio-stm32l.c b/chip/stm32/gpio-stm32l.c
index 22d1350362..09cc0ad4b3 100644
--- a/chip/stm32/gpio-stm32l.c
+++ b/chip/stm32/gpio-stm32l.c
@@ -63,10 +63,10 @@ void gpio_set_flags_by_mask(uint32_t port, uint32_t mask, uint32_t flags)
}
/* Set up interrupts if necessary */
- ASSERT(!(flags & GPIO_INT_LEVEL));
- if (flags & (GPIO_INT_RISING | GPIO_INT_BOTH))
+ ASSERT(!(flags & (GPIO_INT_F_LOW | GPIO_INT_F_HIGH)));
+ if (flags & (GPIO_INT_F_RISING | GPIO_INT_F_BOTH))
STM32_EXTI_RTSR |= mask;
- if (flags & (GPIO_INT_FALLING | GPIO_INT_BOTH))
+ if (flags & (GPIO_INT_F_FALLING | GPIO_INT_F_BOTH))
STM32_EXTI_FTSR |= mask;
/* Interrupt is enabled by gpio_enable_interrupt() */
}