File tree Expand file tree Collapse file tree 18 files changed +36
-18
lines changed Expand file tree Collapse file tree 18 files changed +36
-18
lines changed Original file line number Diff line number Diff line change 23
23
#include " hal/can_api.h"
24
24
#include " platform/Callback.h"
25
25
#include " platform/PlatformMutex.h"
26
+ #include " platform/NonCopyable.h"
26
27
27
28
namespace mbed {
28
29
/* * \addtogroup drivers */
@@ -78,7 +79,7 @@ class CANMessage : public CAN_Message {
78
79
/* * A can bus client, used for communicating with can devices
79
80
* @ingroup drivers
80
81
*/
81
- class CAN {
82
+ class CAN : private NonCopyable <CAN> {
82
83
83
84
public:
84
85
/* * Creates an CAN interface connected to specific pins.
Original file line number Diff line number Diff line change 17
17
#define MBED_ETHERNET_H
18
18
19
19
#include " platform/platform.h"
20
+ #include " platform/NonCopyable.h"
20
21
21
22
#if defined (DEVICE_ETHERNET) || defined(DOXYGEN_ONLY)
22
23
@@ -54,7 +55,7 @@ namespace mbed {
54
55
* @endcode
55
56
* @ingroup drivers
56
57
*/
57
- class Ethernet {
58
+ class Ethernet : private NonCopyable <Ethernet> {
58
59
59
60
public:
60
61
Original file line number Diff line number Diff line change 27
27
#include " flash_api.h"
28
28
#include " platform/SingletonPtr.h"
29
29
#include " platform/PlatformMutex.h"
30
+ #include " platform/NonCopyable.h"
30
31
31
32
namespace mbed {
32
33
@@ -37,7 +38,7 @@ namespace mbed {
37
38
* @note Synchronization level: Thread safe
38
39
* @ingroup drivers
39
40
*/
40
- class FlashIAP {
41
+ class FlashIAP : private NonCopyable <FlashIAP> {
41
42
public:
42
43
FlashIAP ();
43
44
~FlashIAP ();
Original file line number Diff line number Diff line change 23
23
#include " hal/i2c_api.h"
24
24
#include " platform/SingletonPtr.h"
25
25
#include " platform/PlatformMutex.h"
26
+ #include " platform/NonCopyable.h"
26
27
27
28
#if DEVICE_I2C_ASYNCH
28
29
#include " platform/CThunk.h"
@@ -53,7 +54,7 @@ namespace mbed {
53
54
* @endcode
54
55
* @ingroup drivers
55
56
*/
56
- class I2C {
57
+ class I2C : private NonCopyable <I2C> {
57
58
58
59
public:
59
60
enum RxStatus {
Original file line number Diff line number Diff line change 25
25
#include " platform/Callback.h"
26
26
#include " platform/mbed_critical.h"
27
27
#include " platform/mbed_toolchain.h"
28
+ #include " platform/NonCopyable.h"
28
29
29
30
namespace mbed {
30
31
/* * \addtogroup drivers */
@@ -56,7 +57,7 @@ namespace mbed {
56
57
* @endcode
57
58
* @ingroup drivers
58
59
*/
59
- class InterruptIn {
60
+ class InterruptIn : private NonCopyable <InterruptIn> {
60
61
61
62
public:
62
63
Original file line number Diff line number Diff line change 18
18
19
19
#include " platform/platform.h"
20
20
#include " drivers/Ticker.h"
21
+ #include " platform/NonCopyable.h"
21
22
22
23
#if defined (DEVICE_LOWPOWERTIMER) || defined(DOXYGEN_ONLY)
23
24
@@ -31,7 +32,7 @@ namespace mbed {
31
32
* @note Synchronization level: Interrupt safe
32
33
* @ingroup drivers
33
34
*/
34
- class LowPowerTicker : public Ticker {
35
+ class LowPowerTicker : public Ticker , private NonCopyable <LowPowerTicker> {
35
36
36
37
public:
37
38
LowPowerTicker () : Ticker(get_lp_ticker_data()) {
Original file line number Diff line number Diff line change 22
22
23
23
#include " hal/lp_ticker_api.h"
24
24
#include " drivers/LowPowerTicker.h"
25
+ #include " platform/NonCopyable.h"
25
26
26
27
namespace mbed {
27
28
/* * \addtogroup drivers */
@@ -31,7 +32,7 @@ namespace mbed {
31
32
* @note Synchronization level: Interrupt safe
32
33
* @ingroup drivers
33
34
*/
34
- class LowPowerTimeout : public LowPowerTicker {
35
+ class LowPowerTimeout : public LowPowerTicker , private NonCopyable <LowPowerTimeout> {
35
36
36
37
private:
37
38
virtual void handler (void ) {
Original file line number Diff line number Diff line change 18
18
19
19
#include " platform/platform.h"
20
20
#include " drivers/Timer.h"
21
+ #include " platform/NonCopyable.h"
21
22
22
23
#if defined (DEVICE_LOWPOWERTIMER) || defined(DOXYGEN_ONLY)
23
24
@@ -31,7 +32,7 @@ namespace mbed {
31
32
* @note Synchronization level: Interrupt safe
32
33
* @ingroup drivers
33
34
*/
34
- class LowPowerTimer : public Timer {
35
+ class LowPowerTimer : public Timer , private NonCopyable <LowPowerTimer> {
35
36
36
37
public:
37
38
LowPowerTimer () : Timer(get_lp_ticker_data()) {
Original file line number Diff line number Diff line change 22
22
23
23
#include " drivers/SerialBase.h"
24
24
#include " hal/serial_api.h"
25
+ #include " platform/NonCopyable.h"
25
26
26
27
namespace mbed {
27
28
/* * \addtogroup drivers */
@@ -49,7 +50,7 @@ namespace mbed {
49
50
* @endcode
50
51
* @ingroup drivers
51
52
*/
52
- class RawSerial : public SerialBase {
53
+ class RawSerial : public SerialBase , private NonCopyable <RawSerial> {
53
54
54
55
public:
55
56
/* * Create a RawSerial port, connected to the specified transmit and receive pins, with the specified baud.
Original file line number Diff line number Diff line change 23
23
#include " platform/PlatformMutex.h"
24
24
#include " hal/spi_api.h"
25
25
#include " platform/SingletonPtr.h"
26
+ #include " platform/NonCopyable.h"
26
27
27
28
#if DEVICE_SPI_ASYNCH
28
29
#include " platform/CThunk.h"
@@ -72,7 +73,7 @@ namespace mbed {
72
73
* @endcode
73
74
* @ingroup drivers
74
75
*/
75
- class SPI {
76
+ class SPI : private NonCopyable <SPI> {
76
77
77
78
public:
78
79
Original file line number Diff line number Diff line change 17
17
#define MBED_SPISLAVE_H
18
18
19
19
#include " platform/platform.h"
20
+ #include " platform/NonCopyable.h"
20
21
21
22
#if defined (DEVICE_SPISLAVE) || defined(DOXYGEN_ONLY)
22
23
@@ -52,7 +53,7 @@ namespace mbed {
52
53
* @endcode
53
54
* @ingroup drivers
54
55
*/
55
- class SPISlave {
56
+ class SPISlave : private NonCopyable <SPISlave> {
56
57
57
58
public:
58
59
Original file line number Diff line number Diff line change 24
24
#include " SerialBase.h"
25
25
#include " PlatformMutex.h"
26
26
#include " serial_api.h"
27
+ #include " platform/NonCopyable.h"
27
28
28
29
namespace mbed {
29
30
/* * \addtogroup drivers */
@@ -49,7 +50,7 @@ namespace mbed {
49
50
* @endcode
50
51
* @ingroup drivers
51
52
*/
52
- class Serial : public SerialBase , public Stream {
53
+ class Serial : public SerialBase , public Stream , private NonCopyable <Serial> {
53
54
54
55
public:
55
56
#if DEVICE_SERIAL_ASYNCH
Original file line number Diff line number Diff line change 23
23
#include " Callback.h"
24
24
#include " serial_api.h"
25
25
#include " mbed_toolchain.h"
26
+ #include " platform/NonCopyable.h"
26
27
27
28
#if DEVICE_SERIAL_ASYNCH
28
29
#include " CThunk.h"
@@ -38,7 +39,7 @@ namespace mbed {
38
39
* @note Synchronization level: Set by subclass
39
40
* @ingroup drivers
40
41
*/
41
- class SerialBase {
42
+ class SerialBase : private NonCopyable <SerialBase> {
42
43
43
44
public:
44
45
/* * Set the baud rate of the serial port
Original file line number Diff line number Diff line change 19
19
#include " drivers/TimerEvent.h"
20
20
#include " platform/Callback.h"
21
21
#include " platform/mbed_toolchain.h"
22
+ #include " platform/NonCopyable.h"
22
23
23
24
namespace mbed {
24
25
/* * \addtogroup drivers */
@@ -59,7 +60,7 @@ namespace mbed {
59
60
* @endcode
60
61
* @ingroup drivers
61
62
*/
62
- class Ticker : public TimerEvent {
63
+ class Ticker : public TimerEvent , private NonCopyable <Ticker> {
63
64
64
65
public:
65
66
Ticker () : TimerEvent() {
Original file line number Diff line number Diff line change 17
17
#define MBED_TIMEOUT_H
18
18
19
19
#include " drivers/Ticker.h"
20
+ #include " platform/NonCopyable.h"
20
21
21
22
namespace mbed {
22
23
/* * \addtogroup drivers */
@@ -52,7 +53,7 @@ namespace mbed {
52
53
* @endcode
53
54
* @ingroup drivers
54
55
*/
55
- class Timeout : public Ticker {
56
+ class Timeout : public Ticker , private NonCopyable <Timeout> {
56
57
57
58
protected:
58
59
virtual void handler ();
Original file line number Diff line number Diff line change 18
18
19
19
#include " platform/platform.h"
20
20
#include " hal/ticker_api.h"
21
+ #include " platform/NonCopyable.h"
21
22
22
23
namespace mbed {
23
24
/* * \addtogroup drivers */
@@ -46,7 +47,7 @@ namespace mbed {
46
47
* @endcode
47
48
* @ingroup drivers
48
49
*/
49
- class Timer {
50
+ class Timer : private NonCopyable <Timer> {
50
51
51
52
public:
52
53
Timer ();
Original file line number Diff line number Diff line change 18
18
19
19
#include " hal/ticker_api.h"
20
20
#include " hal/us_ticker_api.h"
21
+ #include " platform/NonCopyable.h"
21
22
22
23
namespace mbed {
23
24
/* * \addtogroup drivers */
@@ -27,7 +28,7 @@ namespace mbed {
27
28
* @note Synchronization level: Interrupt safe
28
29
* @ingroup drivers
29
30
*/
30
- class TimerEvent {
31
+ class TimerEvent : private NonCopyable <TimerEvent> {
31
32
public:
32
33
TimerEvent ();
33
34
TimerEvent (const ticker_data_t *data);
Original file line number Diff line number Diff line change 27
27
#include " PlatformMutex.h"
28
28
#include " serial_api.h"
29
29
#include " CircularBuffer.h"
30
+ #include " platform/NonCopyable.h"
30
31
31
32
#ifndef MBED_CONF_DRIVERS_UART_SERIAL_RXBUF_SIZE
32
33
#define MBED_CONF_DRIVERS_UART_SERIAL_RXBUF_SIZE 256
38
39
39
40
namespace mbed {
40
41
41
- class UARTSerial : private SerialBase , public FileHandle {
42
+ class UARTSerial : private SerialBase , public FileHandle , private NonCopyable <UARTSerial> {
42
43
43
44
public:
44
45
You can’t perform that action at this time.
0 commit comments