Minor fork of Yoji KURODA's work to test a fix on a small error.

Dependencies:   RingBuffer

Fork of iSerial by Yoji KURODA

Files at this revision

API Documentation at this revision

Comitter:
UsulFremen
Date:
Thu Dec 13 09:51:46 2012 +0000
Parent:
8:20759f992d48
Commit message:
Corrected error on Serial constructor (Serial(_tx, _rx, _name)).

Changed in this revision

iSerial.cpp Show annotated file Show diff for this revision Revisions of this file
iSerial.h Show annotated file Show diff for this revision Revisions of this file
diff -r 20759f992d48 -r 0c4254519cda iSerial.cpp
--- a/iSerial.cpp	Mon Sep 03 17:59:00 2012 +0000
+++ b/iSerial.cpp	Thu Dec 13 09:51:46 2012 +0000
@@ -98,8 +98,8 @@
 //  led4 = 0;
 }
 
-iSerial::iSerial(PinName _tx, PinName _rx, const char *_name, int _txbufsize, int _rxbufsize)
-:   Serial(_tx, _rx, _name),
+iSerial::iSerial(PinName _tx, PinName _rx, int _txbufsize, int _rxbufsize)
+:   Serial(_tx, _rx),
     tx(_tx),
     rx(_rx),
     txbufsize(_txbufsize),
diff -r 20759f992d48 -r 0c4254519cda iSerial.h
--- a/iSerial.h	Mon Sep 03 17:59:00 2012 +0000
+++ b/iSerial.h	Thu Dec 13 09:51:46 2012 +0000
@@ -33,7 +33,7 @@
 
     enum TERMINL_CODES { CR=0x0D, LF=0x0A };
 
-    iSerial(PinName _tx, PinName _rx, const char *_name=NULL, int _txbufsize=100, int _rxbufsize=100);
+    iSerial(PinName _tx, PinName _rx, int _txbufsize=100, int _rxbufsize=100);
     virtual ~iSerial();
     
     short int putstr(const char* s);