diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-09-03 18:27:51 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-09-03 18:27:51 -0400 |
commit | cb9f3547eb0fdb516391cc8b50eac14b89dcb612 (patch) | |
tree | 1de05b4205b766d60d99e0c0963089ea7b14e64f | |
parent | 877a91bc649e7ef616d6366a8b39affeb650f63d (diff) | |
download | librambutan-cb9f3547eb0fdb516391cc8b50eac14b89dcb612.tar.gz librambutan-cb9f3547eb0fdb516391cc8b50eac14b89dcb612.zip |
ext_interrupts.cpp: Doxygen fixups.
Keep the Doxygen in the header as per Wirish conventions.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | wirish/ext_interrupts.cpp | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/wirish/ext_interrupts.cpp b/wirish/ext_interrupts.cpp index 7271eb3..1195ea9 100644 --- a/wirish/ext_interrupts.cpp +++ b/wirish/ext_interrupts.cpp @@ -39,13 +39,6 @@ static inline exti_trigger_mode exti_out_mode(ExtIntTriggerMode mode); -/** - * @brief Attach an interrupt handler to a pin, triggering on the given mode. - * @param pin Pin to attach an interrupt handler onto. - * @param handler Function to call when the external interrupt is triggered. - * @param mode Trigger mode for the given interrupt. - * @see ExtIntTriggerMode - */ void attachInterrupt(uint8 pin, voidFuncPtr handler, ExtIntTriggerMode mode) { if (pin >= BOARD_NR_GPIO_PINS || !handler) { return; @@ -59,21 +52,8 @@ void attachInterrupt(uint8 pin, voidFuncPtr handler, ExtIntTriggerMode mode) { outMode); } -/** - * @brief Registers an interrupt handler on a pin. - * - * @param pin Pin number - * @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 - * 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) { if (pin >= BOARD_NR_GPIO_PINS || !handler) { return; } @@ -87,10 +67,6 @@ void attachInterrupt(uint8 pin, voidArgumentFuncPtr handler, void *arg, ExtIntTr outMode); } -/** - * @brief Disable any external interrupt attached to a pin. - * @param pin Pin number to detach any interrupt from. - */ void detachInterrupt(uint8 pin) { if (pin >= BOARD_NR_GPIO_PINS) { return; |