Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 9 months ago.
Callback is not a template "void attach(callback<void>func, IrqType type=RxIrq)
void attach(Callback<void()> func, IrqType type=RxIrq);
template<typename T> MBED_DEPRECATED_SINCE("mbed-os-5.1", "The attach function does not support cv-qualifiers. Replaced by " "attach(callback(obj, method), type).")
int _base_getc(); int _base_putc(int c);
- if DEVICE_SERIAL_ASYNCH CThunk<SerialBase> _thunk_irq; event_callback_t _tx_callback; event_callback_t _rx_callback; DMAUsage _tx_usage; DMAUsage _rx_usage;
- endif
serial_t _serial; Callback<void()> _irq[IrqCnt]; int _baud;
};
What's the matter