Myserial Library extends RawSerial
Revision 3:e4c443ce0fbe, committed 2014-06-22
- Comitter:
- naao
- Date:
- Sun Jun 22 09:23:24 2014 +0000
- Parent:
- 2:dfdf4b10a290
- Child:
- 4:10ce20315d77
- Commit message:
- changed argument words
Changed in this revision
MySerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
MySerial.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MySerial.cpp Sun Jun 22 08:54:01 2014 +0000 +++ b/MySerial.cpp Sun Jun 22 09:23:24 2014 +0000 @@ -1,6 +1,6 @@ #include "MySerial.h" -MySerial::MySerial(PinName USBTX,PinName USBRX):RawSerial(USBTX,USBRX) //constructor +MySerial::MySerial(PinName tx,PinName rx):RawSerial(tx,rx) //constructor { } @@ -17,7 +17,7 @@ ichar = getc(); if(i<size) { cWord[i] =ichar; - //pc->putc(ichar); + //putc(ichar); } i++; wait(0.01);
--- a/MySerial.h Sun Jun 22 08:54:01 2014 +0000 +++ b/MySerial.h Sun Jun 22 09:23:24 2014 +0000 @@ -39,10 +39,10 @@ public: /** get chars received by serial * - * @param PinName USBTX - * @param PinName USBRX + * @param PinName tx + * @param PinName rx */ - MySerial(PinName USBTX, PinName USBRX); + MySerial(PinName tx, PinName rx); /** function to get chars after received shars by serial *