summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2019-02-14 12:37:30 -0800
committerDamien George <damien.p.george@gmail.com>2019-02-19 15:17:32 +1100
commit67b326d97e6363906b9e8dca8b86130bece69d3a (patch)
tree3ddb4514ea2260832adc75298f1a744920bc36f7
parent3d17d9b57850ba6ddc28c2830bb6642b6b048981 (diff)
stm32/extint: Remove unused (and incorrect) EXTI defines.
-rw-r--r--ports/stm32/extint.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/ports/stm32/extint.h b/ports/stm32/extint.h
index abe959712..d275087c9 100644
--- a/ports/stm32/extint.h
+++ b/ports/stm32/extint.h
@@ -59,13 +59,6 @@
#define EXTI_NUM_VECTORS (PYB_EXTI_NUM_VECTORS)
-#define EXTI_MODE_INTERRUPT (offsetof(EXTI_TypeDef, IMR))
-#define EXTI_MODE_EVENT (offsetof(EXTI_TypeDef, EMR))
-
-#define EXTI_TRIGGER_RISING (offsetof(EXTI_TypeDef, RTSR))
-#define EXTI_TRIGGER_FALLING (offsetof(EXTI_TypeDef, FTSR))
-#define EXTI_TRIGGER_RISING_FALLING (EXTI_TRIGGER_RISING + EXTI_TRIGGER_FALLING) // just different from RISING or FALLING
-
void extint_init0(void);
uint extint_register(mp_obj_t pin_obj, uint32_t mode, uint32_t pull, mp_obj_t callback_obj, bool override_callback_obj);