aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/exti.c2
-rw-r--r--wirish/include/wirish/ext_interrupts.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/libmaple/exti.c b/libmaple/exti.c
index abd618d..91d8551 100644
--- a/libmaple/exti.c
+++ b/libmaple/exti.c
@@ -90,7 +90,6 @@ void exti_attach_interrupt(exti_num num,
exti_cfg port,
voidFuncPtr handler,
exti_trigger_mode mode) {
-
// Call callback version with arg being null
exti_attach_callback(num, port, (voidArgumentFuncPtr)handler, NULL, mode);
}
@@ -117,7 +116,6 @@ void exti_attach_callback(exti_num num,
voidArgumentFuncPtr handler,
void *arg,
exti_trigger_mode mode) {
-
ASSERT(handler);
/* Register the handler */
diff --git a/wirish/include/wirish/ext_interrupts.h b/wirish/include/wirish/ext_interrupts.h
index 7f2bd6a..ce1ca03 100644
--- a/wirish/include/wirish/ext_interrupts.h
+++ b/wirish/include/wirish/ext_interrupts.h
@@ -77,17 +77,18 @@ void attachInterrupt(uint8 pin, voidFuncPtr handler, ExtIntTriggerMode mode);
* currently registered for the pin, if any.
*
* @param pin Pin number
- * @param handler Static class member function to run upon external interrupt
+ * @param handler Static class member function to run upon external interrupt
* trigger. The handler should take 1 argument and return void
* @param arg Argument that the handler will be passed when it's called. One
- * use of this is to pass the specific instance of the class that
+ * use of this is to pass the specific instance of the class that
* will handle the interrupt.
* @param mode Type of transition to trigger on, e.g. falling, rising, etc.
*
* @sideeffect Registers a handler
* @see detachInterrupt()
*/
-void attachInterrupt(uint8 pin, voidArgumentFuncPtr handler, void *arg, ExtIntTriggerMode mode);
+void attachInterrupt(uint8 pin, voidArgumentFuncPtr handler, void *arg,
+ ExtIntTriggerMode mode);
/**
* @brief Disable any registered external interrupt.