Y SI / Mbed OS lib_Transmission_Serial_example

Dependencies:   lib_Transmission

Committer:
YSI
Date:
Wed Mar 03 13:03:12 2021 +0000
Revision:
4:0e42ea16a9cb
Parent:
1:59b4a81bd792
Child:
7:b4b3cd7f18da
simplification of example and add usbcdc

Who changed what in which revision?

UserRevisionLine numberNew 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 4:0e42ea16a9cb 18 Transmission transmission(&pc, &eth, &usb, &processing);
YSI 0:5d2c38c99ce6 19 #endif