Debounce InterruptIn

Dependents:   led_sigfox Allumag_lampe_sigfox Case_study_02_Turnstile B18_MP3_PLAYER ... more

Revision:
20:996ea2fc8d2d
Parent:
18:e6e9bc6402b7
Child:
21:34b95e1b2bf3
--- a/DebouncedInterrupt.h	Wed Feb 19 03:30:52 2014 +0000
+++ b/DebouncedInterrupt.h	Fri Feb 21 16:50:56 2014 +0000
@@ -1,7 +1,21 @@
+ 
+#ifndef DEBOUNCED_INTERRUPT_H
+#define DEBOUNCED_INTERRUPT_H
+
+#include <stdint.h>
+#include "mbed.h"
+
+/**
+typedef enum {
+    IRQ_NONE,
+    IRQ_RISE,
+    IRQ_FALL
+} gpio_irq_event;
+**/
 
 /** A replacement for InterruptIn that debounces the interrupt
- *  Anil Kandangath
  *
+ * Example:
  * @code
  *
  * #include "DebouncedInterrupt.h"
@@ -22,21 +36,6 @@
  * }
  * @endcode
  */
- 
-#ifndef DEBOUNCED_INTERRUPT_H
-#define DEBOUNCED_INTERRUPT_H
-
-#include <stdint.h>
-#include "mbed.h"
-
-/**
-typedef enum {
-    IRQ_NONE,
-    IRQ_RISE,
-    IRQ_FALL
-} gpio_irq_event;
-**/
-
 class DebouncedInterrupt {
 private:
     unsigned int _debounce_us;