SilentSensors / mbed-dev

Fork of mbed-dev by mbed official

Revision:
187:0387e8f68319
Parent:
168:9672193075cf
diff -r 707f6e361f3e -r 0387e8f68319 drivers/BusIn.h
--- a/drivers/BusIn.h	Fri Jun 22 16:45:37 2018 +0100
+++ b/drivers/BusIn.h	Thu Sep 06 13:40:20 2018 +0100
@@ -62,12 +62,12 @@
           PinName p8 = NC, PinName p9 = NC, PinName p10 = NC, PinName p11 = NC,
           PinName p12 = NC, PinName p13 = NC, PinName p14 = NC, PinName p15 = NC);
 
-    
+
     /** Create an BusIn, connected to the specified pins
      *
      * @param pins An array of pins to connect to bus bit
      */
-     BusIn(PinName pins[16]);
+    BusIn(PinName pins[16]);
 
     virtual ~BusIn();
 
@@ -90,7 +90,8 @@
      *  @returns
      *    Binary mask of connected pins
      */
-    int mask() {
+    int mask()
+    {
         // No lock needed since _nc_mask is not modified outside the constructor
         return _nc_mask;
     }
@@ -103,10 +104,10 @@
     /** Access to particular bit in random-iterator fashion
      * @param index  Position of bit
      */
-    DigitalIn & operator[] (int index);
+    DigitalIn &operator[](int index);
 
 protected:
-    DigitalIn* _pin[16];
+    DigitalIn *_pin[16];
 
     /* Mask of bus's NC pins
      * If bit[n] is set to 1 - pin is connected