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, 7 months ago.
Callback is not a template "class FunctionPointerArg1 : public Callback<R(A1){"
- ifndef MBED_SERIAL_H
- define MBED_SERIAL_H
- include "platform/platform.h"
- if DEVICE_SERIAL
- include "Stream.h"
- include "SerialBase.h"
- include "PlatformMutex.h"
- include "serial_api.h"
namespace mbed { by specifying
class Serial : public SerialBase, public Stream {
public:
- if DEVICE_SERIAL_ASYNCH using SerialBase::read; using SerialBase::write;
- endif
Serial(PinName tx, PinName rx, const char *name=NULL, int baud = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
Serial(PinName tx, PinName rx, int baud);
protected: virtual int _getc(); virtual int _putc(int c); virtual void lock(); virtual void unlock();
PlatformMutex _mutex; };
} namespace mbed
- endif
- endif
What's the matter?