MODSERIAL with support for more devices. Added support for LPC4330

Dependents:   HC05_AT_mode GPS_U-blox_NEO-6M_Test_Code GPS_U-blox_NEO-6M_Code UbloxGPSWithThread ... more

Fork of MODSERIAL by Erik -

Revision:
26:91e4dba7ebe2
Parent:
25:ae0408ebdd68
Child:
27:9c93ce7cb9d8
--- 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;