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.

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Mon Jun 10 19:06:21 2013 +0000
Parent:
25:ae0408ebdd68
Child:
27:9c93ce7cb9d8
Commit message:
_uidx reference in DMA code replaced by _serial.index

Changed in this revision

ChangeLog.c Show annotated file Show diff for this revision Revisions of this file
MODSERIAL.h Show annotated file Show diff for this revision Revisions of this file
--- a/ChangeLog.c	Tue Jan 08 18:01:03 2013 +0000
+++ b/ChangeLog.c	Mon Jun 10 19:06:21 2013 +0000
@@ -1,4 +1,6 @@
 /* $Id:$
+1.26    10th June 2013
+    * _uidx reference in DMA code replaced by _serial.index
 
 1.25    8th January 2013
     
--- a/MODSERIAL.h	Tue Jan 08 18:01:03 2013 +0000
+++ b/MODSERIAL.h	Mon Jun 10 19:06:21 2013 +0000
@@ -1003,7 +1003,7 @@
         dmaSendChannel = dmaChannel & 0x7;
         
         uint32_t conn = MODDMA::UART0_Tx;
-        switch(_uidx) {
+        switch(_serial.index) {
             case 0: conn = MODDMA::UART0_Tx; break;
             case 1: conn = MODDMA::UART1_Tx; break;
             case 2: conn = MODDMA::UART2_Tx; break;