aboutsummaryrefslogtreecommitdiff
path: root/stmhal/extint.c
diff options
context:
space:
mode:
authorDave Hylands2015-08-03 15:07:20 -0700
committerDamien George2015-08-07 08:52:42 +0100
commit8f59bacb92cb705d79f08f29f4d64c0a774ab78f (patch)
treed58104222746d8f1a61ebb7297a9501cbf0dcdfd /stmhal/extint.c
parentbe66a9ecf60eac18e08eda7bddf4b3481459c9f2 (diff)
stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7
Diffstat (limited to 'stmhal/extint.c')
-rw-r--r--stmhal/extint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/extint.c b/stmhal/extint.c
index f89549269..ebd9d3e39 100644
--- a/stmhal/extint.c
+++ b/stmhal/extint.c
@@ -188,7 +188,7 @@ void extint_enable(uint line) {
if (line >= EXTI_NUM_VECTORS) {
return;
}
- #if defined(STM32F7)
+ #if defined(MCU_SERIES_F7)
// The Cortex-M7 doesn't have bitband support.
mp_uint_t irq_state = disable_irq();
if (pyb_extint_mode[line] == EXTI_Mode_Interrupt) {
@@ -210,7 +210,7 @@ void extint_disable(uint line) {
return;
}
- #if defined(STM32F7)
+ #if defined(MCU_SERIES_F7)
// The Cortex-M7 doesn't have bitband support.
mp_uint_t irq_state = disable_irq();
EXTI->IMR &= ~(1 << line);