8 years, 7 months ago.

Callback is not a template "class FunctionPointerArg1 : public Callback<R(A1){"

  1. ifndef MBED_SERIAL_H
  2. define MBED_SERIAL_H
  1. include "platform/platform.h"
  1. if DEVICE_SERIAL
  1. include "Stream.h"
  2. include "SerialBase.h"
  3. include "PlatformMutex.h"
  4. include "serial_api.h"

namespace mbed { by specifying

class Serial : public SerialBase, public Stream {

public:

  1. if DEVICE_SERIAL_ASYNCH using SerialBase::read; using SerialBase::write;
  2. 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

  1. endif
  1. endif

What's the matter?

Be the first to answer this question.