diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-09-03 18:27:18 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-09-03 18:27:18 -0400 |
commit | 877a91bc649e7ef616d6366a8b39affeb650f63d (patch) | |
tree | 8917c0dfb8f13fe253a6bb148e3e188143fad34b | |
parent | 3c0af902520b67ba2a8eb50f96a392d8070e3614 (diff) | |
download | librambutan-877a91bc649e7ef616d6366a8b39affeb650f63d.tar.gz librambutan-877a91bc649e7ef616d6366a8b39affeb650f63d.zip |
Whitespace fixups to EXTI files.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | libmaple/exti.c | 2 | ||||
-rw-r--r-- | wirish/include/wirish/ext_interrupts.h | 7 |
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. |