mbed library sources. Supersedes mbed-src.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
Diff: drivers/Ticker.h
- Revision:
- 168:9672193075cf
- Parent:
- 167:e84263d55307
- Child:
- 174:b96e65c34a4d
--- a/drivers/Ticker.h Wed Jun 21 17:46:44 2017 +0100 +++ b/drivers/Ticker.h Thu Jul 06 15:42:05 2017 +0100 @@ -19,6 +19,7 @@ #include "drivers/TimerEvent.h" #include "platform/Callback.h" #include "platform/mbed_toolchain.h" +#include "platform/NonCopyable.h" namespace mbed { /** \addtogroup drivers */ @@ -59,7 +60,7 @@ * @endcode * @ingroup drivers */ -class Ticker : public TimerEvent { +class Ticker : public TimerEvent, private NonCopyable<Ticker> { public: Ticker() : TimerEvent() {