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 SoftSerial by
Revision 5:acfd0329f648, committed 2014-04-26
- Comitter:
- Sissors
- Date:
- Sat Apr 26 20:55:02 2014 +0000
- Parent:
- 4:c010265ed202
- Child:
- 6:517082212c00
- Commit message:
- Added name option to constructor
Changed in this revision
| SoftSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
| SoftSerial.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SoftSerial.cpp Sat Apr 26 20:04:49 2014 +0000
+++ b/SoftSerial.cpp Sat Apr 26 20:55:02 2014 +0000
@@ -1,6 +1,6 @@
#include "SoftSerial.h"
-SoftSerial::SoftSerial(PinName TX, PinName RX) {
+SoftSerial::SoftSerial(PinName TX, PinName RX, const char* name) {
tx_en = rx_en = false;
if (TX != NC) {
tx = new DigitalOut(TX);
--- a/SoftSerial.h Sat Apr 26 20:04:49 2014 +0000
+++ b/SoftSerial.h Sat Apr 26 20:55:02 2014 +0000
@@ -14,8 +14,9 @@
*
* @param TX Name of the TX pin, NC for not connected
* @param RX Name of the RX pin, NC for not connected, must be capable of being InterruptIn
+ * @param name Name of the connection
*/
- SoftSerial(PinName TX, PinName RX);
+ SoftSerial(PinName TX, PinName RX, const char* name = NULL);
/** Set the baud rate of the serial port
*
