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@7:b4b3cd7f18da, 2021-03-17 (annotated)
- Committer:
- YSI
- Date:
- Wed Mar 17 14:01:51 2021 +0000
- Revision:
- 7:b4b3cd7f18da
- Parent:
- 4:0e42ea16a9cb
- Child:
- 8:bea3564ffb56
change transmission constructor
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 | 4:0e42ea16a9cb | 3 | #define MBED_PROJECT "Transmission" |
| YSI | 0:5d2c38c99ce6 | 4 | |
| YSI | 4:0e42ea16a9cb | 5 | #include "mbed.h" |
| YSI | 0:5d2c38c99ce6 | 6 | #include "lib_Transmission.h" |
| YSI | 0:5d2c38c99ce6 | 7 | |
| YSI | 0:5d2c38c99ce6 | 8 | BusOut Led(LED1, LED2, LED3); |
| YSI | 1:59b4a81bd792 | 9 | #if MBED_MAJOR_VERSION > 5 |
| YSI | 0:5d2c38c99ce6 | 10 | UnbufferedSerial pc(USBTX, USBRX, 230400); |
| YSI | 1:59b4a81bd792 | 11 | #else |
| YSI | 4:0e42ea16a9cb | 12 | Serial pc(USBTX, USBRX, 230400); |
| YSI | 1:59b4a81bd792 | 13 | #endif |
| YSI | 4:0e42ea16a9cb | 14 | EthernetInterface eth; |
| YSI | 4:0e42ea16a9cb | 15 | USBCDC usb(false); |
| YSI | 0:5d2c38c99ce6 | 16 | |
| YSI | 4:0e42ea16a9cb | 17 | string processing(string); |
| YSI | 7:b4b3cd7f18da | 18 | Transmission transmission(&pc, &usb, ð, &processing); |
| YSI | 0:5d2c38c99ce6 | 19 | #endif |