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
Child:
146:22da6e220af6
--- a/drivers/SerialBase.h	Thu Jun 08 14:53:05 2017 +0100
+++ b/drivers/SerialBase.h	Wed Jun 21 17:31:38 2017 +0100
@@ -18,9 +18,8 @@
 
 #include "platform/platform.h"
 
-#if DEVICE_SERIAL
+#if defined (DEVICE_SERIAL) || defined(DOXYGEN_ONLY)
 
-#include "Stream.h"
 #include "Callback.h"
 #include "serial_api.h"
 #include "mbed_toolchain.h"
@@ -32,12 +31,12 @@
 
 namespace mbed {
 /** \addtogroup drivers */
-/** @{*/
 
 /** A base class for serial port implementations
  * Can't be instantiated directly (use Serial or RawSerial)
  *
- * @Note Synchronization level: Set by subclass
+ * @note Synchronization level: Set by subclass
+ * @ingroup drivers
  */
 class SerialBase {
 
@@ -74,7 +73,7 @@
      *
      *  @param bits The number of bits in a word (5-8; default = 8)
      *  @param parity The parity used (SerialBase::None, SerialBase::Odd, SerialBase::Even, SerialBase::Forced1, SerialBase::Forced0; default = SerialBase::None)
-     *  @param stop The number of stop bits (1 or 2; default = 1)
+     *  @param stop_bits The number of stop bits (1 or 2; default = 1)
      */
     void format(int bits=8, Parity parity=SerialBase::None, int stop_bits=1);
 
@@ -258,5 +257,3 @@
 #endif
 
 #endif
-
-/** @}*/