Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of football_project by
Diff: io/MySerial.h
- Revision:
- 3:388e441be8df
- Parent:
- 2:fe1566cdb6e7
- Child:
- 4:17b8edf264c3
diff -r fe1566cdb6e7 -r 388e441be8df io/MySerial.h
--- a/io/MySerial.h Mon Apr 13 14:02:48 2015 +0000
+++ b/io/MySerial.h Mon Apr 13 17:41:48 2015 +0000
@@ -12,6 +12,9 @@
#define MYSERIAL_H
#include "mbed.h"
+// #include "Stream.h"
+// #include "FunctionPointer.h"
+#include "serial_api.h"
#include <cstdarg>
namespace moo
@@ -109,8 +112,8 @@
* @note
* Either tx or rx may be specified as NC if unused
*/
- MySerial( PinName tx, PinName rx, const char *name=NULL,
- PinName rts=NC/* RTS_PIN_NUMBER */, PinName cts=NC /* CTS_PIN_NUMBER */ );
+ MySerial( PinName tx, PinName rx, const char *name=NULL,
+ PinName rts=NC, PinName cts=NC ); // Defaults to using no flow control.
/** Write a string to the serial port
*
