aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-rw-r--r--wirish/include/wirish/ext_interrupts.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/wirish/include/wirish/ext_interrupts.h b/wirish/include/wirish/ext_interrupts.h
index 03b8e97..9ef4657 100644
--- a/wirish/include/wirish/ext_interrupts.h
+++ b/wirish/include/wirish/ext_interrupts.h
@@ -41,12 +41,12 @@
*/
typedef enum ExtIntTriggerMode {
RISING, /**< To trigger an interrupt when the pin transitions LOW
- to HIGH */
+ to HIGH */
FALLING, /**< To trigger an interrupt when the pin transitions
- HIGH to LOW */
+ HIGH to LOW */
CHANGE /**< To trigger an interrupt when the pin transitions from
- LOW to HIGH or HIGH to LOW (i.e., when the pin
- changes). */
+ LOW to HIGH or HIGH to LOW (i.e., when the pin
+ changes). */
} ExtIntTriggerMode;
/**
@@ -57,9 +57,10 @@ typedef enum ExtIntTriggerMode {
* context. The new handler will replace whatever handler is
* currently registered for the pin, if any.
*
- * @param pin Maple pin number
+ * @param pin Pin number
* @param handler Function to run upon external interrupt trigger.
- * The handler should take no arguments, and have void return type.
+ * The handler should take no arguments, and have void
+ * return type.
* @param mode Type of transition to trigger on, e.g. falling, rising, etc.
*
* @sideeffect Registers a handler