Skip to content

Commit 692f0a2

Browse files
committed
Removed CAN deprecated APIs
1 parent a745525 commit 692f0a2

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

drivers/CAN.h

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -301,46 +301,6 @@ class CAN : private NonCopyable<CAN> {
301301
*/
302302
void attach(Callback<void()> func, IrqType type = RxIrq);
303303

304-
/** Attach a member function to call whenever a CAN frame received interrupt
305-
* is generated.
306-
*
307-
* @param obj pointer to the object to call the member function on
308-
* @param method pointer to the member function to be called
309-
* @param type Which CAN interrupt to attach the member function to (CAN::RxIrq for message received, TxIrq for transmitted or aborted, EwIrq for error warning, DoIrq for data overrun, WuIrq for wake-up, EpIrq for error passive, AlIrq for arbitration lost, BeIrq for bus error)
310-
* @deprecated
311-
* The attach function does not support cv-qualifiers. Replaced by
312-
* attach(callback(obj, method), type).
313-
*/
314-
template<typename T>
315-
MBED_DEPRECATED_SINCE("mbed-os-5.1",
316-
"The attach function does not support cv-qualifiers. Replaced by "
317-
"attach(callback(obj, method), type).")
318-
void attach(T *obj, void (T::*method)(), IrqType type = RxIrq)
319-
{
320-
// Underlying call thread safe
321-
attach(callback(obj, method), type);
322-
}
323-
324-
/** Attach a member function to call whenever a CAN frame received interrupt
325-
* is generated.
326-
*
327-
* @param obj pointer to the object to call the member function on
328-
* @param method pointer to the member function to be called
329-
* @param type Which CAN interrupt to attach the member function to (CAN::RxIrq for message received, TxIrq for transmitted or aborted, EwIrq for error warning, DoIrq for data overrun, WuIrq for wake-up, EpIrq for error passive, AlIrq for arbitration lost, BeIrq for bus error)
330-
* @deprecated
331-
* The attach function does not support cv-qualifiers. Replaced by
332-
* attach(callback(obj, method), type).
333-
*/
334-
template<typename T>
335-
MBED_DEPRECATED_SINCE("mbed-os-5.1",
336-
"The attach function does not support cv-qualifiers. Replaced by "
337-
"attach(callback(obj, method), type).")
338-
void attach(T *obj, void (*method)(T *), IrqType type = RxIrq)
339-
{
340-
// Underlying call thread safe
341-
attach(callback(obj, method), type);
342-
}
343-
344304
static void _irq_handler(uint32_t id, CanIrqType type);
345305

346306
#if !defined(DOXYGEN_ONLY)

0 commit comments

Comments
 (0)