ads1115 only

Fork of mbed by mbed official

Revision:
122:f9eeca106725
Parent:
65:5798e58a58b1
Child:
123:b0220dba8be7
diff -r 6c34061e7c34 -r f9eeca106725 platform.h
--- a/platform.h	Wed May 25 16:44:06 2016 +0100
+++ b/platform.h	Thu Jul 07 14:34:11 2016 +0100
@@ -27,4 +27,31 @@
 #include <cstdio>
 #include <cstring>
 
+#ifdef MBED_CONF_RTOS_PRESENT
+#include "Mutex.h"
+typedef rtos::Mutex PlatformMutex;
+#else
+/** A stub mutex for when an RTOS is not present
+*/
+class PlatformMutex {
+public:
+    PlatformMutex() {
+        // Stub
+
+    }
+    ~PlatformMutex() {
+        // Stub
+    }
+
+    void lock() {
+        // Do nothing
+    }
+
+    void unlock() {
+        // Do nothing
+    }
+};
+
 #endif
+
+#endif