Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: drivers/BusInOut.h
- Revision:
- 187:0387e8f68319
- Parent:
- 168:9672193075cf
--- a/drivers/BusInOut.h	Fri Jun 22 16:45:37 2018 +0100
+++ b/drivers/BusInOut.h	Thu Sep 06 13:40:20 2018 +0100
@@ -103,21 +103,22 @@
      *  @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;
     }
 
-     /** A shorthand for write()
+    /** A shorthand for write()
     * \sa BusInOut::write()
-      */
-    BusInOut& operator= (int v);
-    BusInOut& operator= (BusInOut& rhs);
+     */
+    BusInOut &operator= (int v);
+    BusInOut &operator= (BusInOut &rhs);
 
     /** Access to particular bit in random-iterator fashion
      * @param index  Bit Position
      */
-    DigitalInOut& operator[] (int index);
+    DigitalInOut &operator[](int index);
 
     /** A shorthand for read()
      * \sa BusInOut::read()
@@ -127,7 +128,7 @@
 protected:
     virtual void lock();
     virtual void unlock();
-    DigitalInOut* _pin[16];
+    DigitalInOut *_pin[16];
 
     /* Mask of bus's NC pins
      * If bit[n] is set to 1 - pin is connected
    