aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/ext_interrupts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/ext_interrupts.cpp')
-rw-r--r--wirish/ext_interrupts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/wirish/ext_interrupts.cpp b/wirish/ext_interrupts.cpp
index 5b32b05..060994f 100644
--- a/wirish/ext_interrupts.cpp
+++ b/wirish/ext_interrupts.cpp
@@ -49,8 +49,8 @@ void attachInterrupt(uint8 pin, voidFuncPtr handler, ExtIntTriggerMode mode) {
exti_trigger_mode outMode = exti_out_mode(mode);
- exti_attach_interrupt((afio_exti_num)(PIN_MAP[pin].pin),
- PIN_MAP[pin].ext_port,
+ exti_attach_interrupt((afio_exti_num)(PIN_MAP[pin].gpio_pin),
+ gpio_exti_port(PIN_MAP[pin].gpio_device),
handler,
outMode);
}
@@ -64,7 +64,7 @@ void detachInterrupt(uint8 pin) {
return;
}
- exti_detach_interrupt((afio_exti_num)(PIN_MAP[pin].pin));
+ exti_detach_interrupt((afio_exti_num)(PIN_MAP[pin].gpio_pin));
}
static inline exti_trigger_mode exti_out_mode(ExtIntTriggerMode mode) {