MODSERIAL with support for more devices

Dependents:   1D-Pong BMT-K9_encoder BMT-K9-Regelaar programma_filter ... more

Check the cookbook page for more information: https://mbed.org/cookbook/MODSERIAL

Did you add a device? Please send a pull request so we can keep everything in one library instead of many copies. In that case also send a PM, since currently mbed does not inform of new pull requests. I will then also add you to the developers of this library so you can do other changes directly.

Revision:
25:ae0408ebdd68
Parent:
24:9c456e647a8f
Child:
26:91e4dba7ebe2
diff -r 9c456e647a8f -r ae0408ebdd68 MODSERIAL.h
--- a/MODSERIAL.h	Thu Dec 06 13:06:10 2012 +0000
+++ b/MODSERIAL.h	Tue Jan 08 18:01:03 2013 +0000
@@ -284,7 +284,7 @@
      * @param tx PinName of the TX pin.
      * @param rx PinName of the TX pin.
      */    
-    MODSERIAL(PinName tx, PinName rx);
+    MODSERIAL(PinName tx, PinName rx, const char* name = NULL);
     
     /**
      * The MODSERIAL constructor is used to initialise the serial object.
@@ -293,7 +293,7 @@
      * @param rx PinName of the TX pin.
      * @param bufferSize Integer of the TX and RX buffer sizes.
      */    
-    MODSERIAL(PinName tx, PinName rx, int bufferSize);
+    MODSERIAL(PinName tx, PinName rx, int bufferSize, const char* name = NULL);
     
     /**
      * The MODSERIAL constructor is used to initialise the serial object.
@@ -303,7 +303,7 @@
      * @param txBufferSize Integer of the TX buffer sizes.
      * @param rxBufferSize Integer of the RX buffer sizes.
      */    
-    MODSERIAL(PinName tx, PinName rx, int txBufferSize, int rxBufferSize);
+    MODSERIAL(PinName tx, PinName rx, int txBufferSize, int rxBufferSize, const char* name = NULL);
     
     virtual ~MODSERIAL();