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/platform/CircularBuffer.h	Thu Jun 08 14:53:05 2017 +0100
+++ b/platform/CircularBuffer.h	Wed Jun 21 17:31:38 2017 +0100
@@ -20,11 +20,11 @@
 
 namespace mbed {
 /** \addtogroup platform */
-/** @{*/
 
 /** Templated Circular buffer class
  *
- *  @Note Synchronization level: Interrupt safe
+ *  @note Synchronization level: Interrupt safe
+ *  @ingroup platform
  */
 template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
 class CircularBuffer {
@@ -76,7 +76,7 @@
      *
      * @return True if the buffer is empty, false if not
      */
-    bool empty() {
+    bool empty() const {
         core_util_critical_section_enter();
         bool is_empty = (_head == _tail) && !_full;
         core_util_critical_section_exit();
@@ -87,7 +87,7 @@
      *
      * @return True if the buffer is full, false if not
      */
-    bool full() {
+    bool full() const {
         core_util_critical_section_enter();
         bool full = _full;
         core_util_critical_section_exit();
@@ -116,4 +116,3 @@
 
 #endif
 
-/** @}*/