1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
-
- #ifndef MBED_SERIAL_H
- #define MBED_SERIAL_H
-
- #include "platform.h"
-
- #if DEVICE_SERIAL
-
- #include "Stream.h"
- #include "SerialBase.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);
-
- protected:
- virtual int _getc();
- virtual int _putc(int c);
- };
-
- }
-
- #endif
-
- #endif
|