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.
Identicier "MBED_CONF_PLATFORM_DEFAULT_BAUD_RATE"is undefined
- 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 { 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?
So this is offline compile? What IDE? These #defines are usually in mbed_config.h. I assume if you open that file you will see it defined? Maybe an export issue? Exports are often wonky. Maybe check the includes and search paths for the exported project.
posted by Graham S. 17 Mar 2017