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.
Diff: AnalogOut.h
- Revision:
- 123:b0220dba8be7
- Parent:
- 122:f9eeca106725
diff -r f9eeca106725 -r b0220dba8be7 AnalogOut.h --- a/AnalogOut.h Thu Jul 07 14:34:11 2016 +0100 +++ b/AnalogOut.h Fri Aug 12 13:04:35 2016 +0200 @@ -21,6 +21,7 @@ #if DEVICE_ANALOGOUT #include "analogout_api.h" +#include "PlatformMutex.h" namespace mbed { @@ -99,7 +100,6 @@ return ret; } -#ifdef MBED_OPERATORS /** An operator shorthand for write() */ AnalogOut& operator= (float percent) { @@ -120,7 +120,6 @@ // Underlying read call is thread safe return read(); } -#endif virtual ~AnalogOut() { // Do nothing