The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
145:64910690c574
Parent:
138:093f2bd7b9eb
--- a/drivers/DigitalIn.h	Thu Jun 08 14:53:05 2017 +0100
+++ b/drivers/DigitalIn.h	Wed Jun 21 17:31:38 2017 +0100
@@ -23,11 +23,10 @@
 
 namespace mbed {
 /** \addtogroup drivers */
-/** @{*/
 
 /** A digital input, used for reading the state of a pin
  *
- * @Note Synchronization level: Interrupt safe
+ * @note Synchronization level: Interrupt safe
  *
  * Example:
  * @code
@@ -47,6 +46,7 @@
  *     }
  * }
  * @endcode
+ * @ingroup drivers
  */
 class DigitalIn {
 
@@ -82,7 +82,7 @@
 
     /** Set the input pin mode
      *
-     *  @param mode PullUp, PullDown, PullNone, OpenDrain
+     *  @param pull PullUp, PullDown, PullNone, OpenDrain
      */
     void mode(PinMode pull) {
         core_util_critical_section_enter();
@@ -102,6 +102,7 @@
     }
 
     /** An operator shorthand for read()
+     * \sa DigitalIn::read()
      */
     operator int() {
         // Underlying read is thread safe
@@ -115,5 +116,3 @@
 } // namespace mbed
 
 #endif
-
-/** @}*/