mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Diff: drivers/I2C.h
- Revision:
- 168:9672193075cf
- Parent:
- 167:e84263d55307
- Child:
- 174:b96e65c34a4d
--- a/drivers/I2C.h Wed Jun 21 17:46:44 2017 +0100 +++ b/drivers/I2C.h Thu Jul 06 15:42:05 2017 +0100 @@ -23,6 +23,7 @@ #include "hal/i2c_api.h" #include "platform/SingletonPtr.h" #include "platform/PlatformMutex.h" +#include "platform/NonCopyable.h" #if DEVICE_I2C_ASYNCH #include "platform/CThunk.h" @@ -53,7 +54,7 @@ * @endcode * @ingroup drivers */ -class I2C { +class I2C : private NonCopyable<I2C> { public: enum RxStatus {