...

Dependents:   2doejemplo Labo_TRSE_Drone

Fork of mbed by mbed official

Revision:
55:d722ed6a4237
Parent:
54:71b101360fb9
Child:
59:0883845fe643
--- a/DigitalInOut.h	Tue Jan 08 12:46:36 2013 +0000
+++ b/DigitalInOut.h	Wed Jan 16 12:56:34 2013 +0000
@@ -40,38 +40,38 @@
     DigitalInOut(PinName pin) {
         gpio_init(&gpio, pin, PIN_INPUT);
     }
-    
+
     /** Set the output, specified as 0 or 1 (int)
      *
-     *  @param value An integer specifying the pin output value, 
-     *      0 for logical 0, 1 (or any other non-zero value) for logical 1 
+     *  @param value An integer specifying the pin output value,
+     *      0 for logical 0, 1 (or any other non-zero value) for logical 1
      */
     void write(int value) {
         gpio_write(&gpio, value);
     }
-    
+
     /** Return the output setting, represented as 0 or 1 (int)
      *
      *  @returns
-     *    an integer representing the output setting of the pin if it is an output, 
+     *    an integer representing the output setting of the pin if it is an output,
      *    or read the input if set as an input
      */
     int read() {
         return gpio_read(&gpio);
     }
-    
+
     /** Set as an output
      */
     void output() {
         gpio_dir(&gpio, PIN_OUTPUT);
     }
-    
+
     /** Set as an input
      */
     void input() {
         gpio_dir(&gpio, PIN_INPUT);
     }
-    
+
     /** Set the input pin mode
      *
      *  @param mode PullUp, PullDown, PullNone, OpenDrain
@@ -79,7 +79,7 @@
     void mode(PinMode pull) {
         gpio_mode(&gpio, pull);
     }
-    
+
 #ifdef MBED_OPERATORS
     /** A shorthand for write()
      */
@@ -87,12 +87,12 @@
         write(value);
         return *this;
     }
-    
+
     DigitalInOut& operator= (DigitalInOut& rhs) {
         write(rhs.read());
         return *this;
     }
-    
+
     /** A shorthand for read()
      */
     operator int() {