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.
Dependencies: SoftSerial SDFileSystem mbed wave_player
MySoftSerial.cpp@16:1a0589d846bf, 2017-05-10 (annotated)
- Committer:
- Desertification
- Date:
- Wed May 10 14:31:39 2017 +0000
- Revision:
- 16:1a0589d846bf
- Parent:
- 15:75f9bd5d7659
- Child:
- 17:8683abdc1912
test dc correction
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Thomas Cauwelier |
15:75f9bd5d7659 | 1 | // |
| Thomas Cauwelier |
15:75f9bd5d7659 | 2 | // Created by thoma on 10-May-17. |
| Thomas Cauwelier |
15:75f9bd5d7659 | 3 | // |
| Thomas Cauwelier |
15:75f9bd5d7659 | 4 | |
| Thomas Cauwelier |
15:75f9bd5d7659 | 5 | #include "MySoftSerial.h" |
| Thomas Cauwelier |
15:75f9bd5d7659 | 6 | |
| Desertification | 16:1a0589d846bf | 7 | MySoftSerial::MySoftSerial(PinName TX, PinName RX, const char *name) : SoftSerial(TX, RX, name) { |
| Thomas Cauwelier |
15:75f9bd5d7659 | 8 | |
| Thomas Cauwelier |
15:75f9bd5d7659 | 9 | } |
| Thomas Cauwelier |
15:75f9bd5d7659 | 10 | |
| Thomas Cauwelier |
15:75f9bd5d7659 | 11 | MySoftSerial::~MySoftSerial() { |
| Thomas Cauwelier |
15:75f9bd5d7659 | 12 | |
| Thomas Cauwelier |
15:75f9bd5d7659 | 13 | } |
| Thomas Cauwelier |
15:75f9bd5d7659 | 14 | |
| Thomas Cauwelier |
15:75f9bd5d7659 | 15 | int MySoftSerial::putc(int c) { |
| Thomas Cauwelier |
15:75f9bd5d7659 | 16 | return _putc(c); |
| Thomas Cauwelier |
15:75f9bd5d7659 | 17 | } |
| Thomas Cauwelier |
15:75f9bd5d7659 | 18 | |
| Thomas Cauwelier |
15:75f9bd5d7659 | 19 | int MySoftSerial::getc() { |
| Thomas Cauwelier |
15:75f9bd5d7659 | 20 | return _getc(); |
| Thomas Cauwelier |
15:75f9bd5d7659 | 21 | } |