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: lib_Transmission
main.h@18:f2f2c951f5a4, 2021-10-04 (annotated)
- Committer:
- YSI
- Date:
- Mon Oct 04 11:45:38 2021 +0000
- Revision:
- 18:f2f2c951f5a4
- Parent:
- 10:0ab5c8865667
change example name
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| YSI | 0:5d2c38c99ce6 | 1 | #ifndef MAIN_H |
| YSI | 0:5d2c38c99ce6 | 2 | #define MAIN_H |
| YSI | 18:f2f2c951f5a4 | 3 | #define MBED_PROJECT "Transmission Serial" |
| YSI | 0:5d2c38c99ce6 | 4 | |
| YSI | 0:5d2c38c99ce6 | 5 | #include "lib_Transmission.h" |
| YSI | 0:5d2c38c99ce6 | 6 | |
| YSI | 1:59b4a81bd792 | 7 | #if MBED_MAJOR_VERSION > 5 |
| YSI | 0:5d2c38c99ce6 | 8 | UnbufferedSerial pc(USBTX, USBRX, 230400); |
| YSI | 1:59b4a81bd792 | 9 | #else |
| YSI | 4:0e42ea16a9cb | 10 | Serial pc(USBTX, USBRX, 230400); |
| YSI | 1:59b4a81bd792 | 11 | #endif |
| YSI | 0:5d2c38c99ce6 | 12 | |
| YSI | 10:0ab5c8865667 | 13 | string transmission_processing(string); |
| YSI | 10:0ab5c8865667 | 14 | Transmission transmission(&pc, &transmission_processing); |
| YSI | 0:5d2c38c99ce6 | 15 | #endif |