Skip to content

Commit d048cd4

Browse files
authored
Merge pull request #12410 from rajkan01/serial_remove_deprecate
Remove the deprecated RawSerial, UARTSerial, Serial
2 parents 03dab7f + df32091 commit d048cd4

File tree

10 files changed

+1
-1295
lines changed

10 files changed

+1
-1295
lines changed

TESTS/mbed_drivers/dev_null/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
#include "mbed.h"
19+
#include "platform/Stream.h"
1920
#include "greentea-client/test_env.h"
2021

2122
class DevNull : public Stream {

drivers/RawSerial.h

Lines changed: 0 additions & 133 deletions
This file was deleted.

drivers/Serial.h

Lines changed: 0 additions & 168 deletions
This file was deleted.

drivers/SerialBase.h

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -105,42 +105,6 @@ class SerialBase : private NonCopyable<SerialBase> {
105105
*/
106106
void attach(Callback<void()> func, IrqType type = RxIrq);
107107

108-
/** Attach a member function to call whenever a serial interrupt is generated
109-
*
110-
* @param obj pointer to the object to call the member function on
111-
* @param method pointer to the member function to be called
112-
* @param type Which serial interrupt to attach the member function to (Serial::RxIrq for receive, TxIrq for transmit buffer empty)
113-
* @deprecated
114-
* The attach function does not support cv-qualifiers. Replaced by
115-
* attach(callback(obj, method), type).
116-
*/
117-
template<typename T>
118-
MBED_DEPRECATED_SINCE("mbed-os-5.1",
119-
"The attach function does not support cv-qualifiers. Replaced by "
120-
"attach(callback(obj, method), type).")
121-
void attach(T *obj, void (T::*method)(), IrqType type = RxIrq)
122-
{
123-
attach(callback(obj, method), type);
124-
}
125-
126-
/** Attach a member function to call whenever a serial interrupt is generated
127-
*
128-
* @param obj pointer to the object to call the member function on
129-
* @param method pointer to the member function to be called
130-
* @param type Which serial interrupt to attach the member function to (Serial::RxIrq for receive, TxIrq for transmit buffer empty)
131-
* @deprecated
132-
* The attach function does not support cv-qualifiers. Replaced by
133-
* attach(callback(obj, method), type).
134-
*/
135-
template<typename T>
136-
MBED_DEPRECATED_SINCE("mbed-os-5.1",
137-
"The attach function does not support cv-qualifiers. Replaced by "
138-
"attach(callback(obj, method), type).")
139-
void attach(T *obj, void (*method)(T *), IrqType type = RxIrq)
140-
{
141-
attach(callback(obj, method), type);
142-
}
143-
144108
/** Generate a break condition on the serial line
145109
* NOTE: Clear break needs to run at least one frame after set_break is called
146110
*/

0 commit comments

Comments
 (0)