Corentin Potron / SerialHalfDuplex

Fork of SerialHalfDuplex by mbed unsupported

Committer:
cpotron
Date:
Wed Apr 25 17:13:38 2018 +0000
Revision:
2:242a54f3629b
Parent:
0:7802a25daf3b
Commande des AX12 sur F303K8

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_unsupported 0:7802a25daf3b 1 #ifndef MBED_SERIALHALFDUPLEX_H
mbed_unsupported 0:7802a25daf3b 2 #define MBED_SERIALHALFDUPLEX_H
mbed_unsupported 0:7802a25daf3b 3
cpotron 2:242a54f3629b 4 #include "mbed.h"
mbed_unsupported 0:7802a25daf3b 5
cpotron 2:242a54f3629b 6 class SerialHalfDuplex {
mbed_unsupported 0:7802a25daf3b 7
mbed_unsupported 0:7802a25daf3b 8 public:
mbed_unsupported 0:7802a25daf3b 9
cpotron 2:242a54f3629b 10 SerialHalfDuplex(PinName tx, PinName rx);
cpotron 2:242a54f3629b 11 int putc(int byte);
mbed_unsupported 0:7802a25daf3b 12 int getc();
mbed_unsupported 0:7802a25daf3b 13
mbed_unsupported 0:7802a25daf3b 14
cpotron 2:242a54f3629b 15 private:
cpotron 2:242a54f3629b 16 Serial in;
cpotron 2:242a54f3629b 17 Serial out;
cpotron 2:242a54f3629b 18
cpotron 2:242a54f3629b 19 };
mbed_unsupported 0:7802a25daf3b 20
cpotron 2:242a54f3629b 21 #endif