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:
18:21ef26402365
Parent:
12:8c7394e2ae7f
Child:
27:9c93ce7cb9d8
--- a/ISR_TX.cpp	Tue Mar 08 01:42:25 2011 +0000
+++ b/ISR_TX.cpp	Thu Apr 21 09:20:41 2011 +0000
@@ -29,7 +29,7 @@
 MODSERIAL::isr_tx(bool doCallback)
 {
     if (! _base || buffer_size[TxIrq] == 0 || buffer[TxIrq] == (char *)NULL) {
-        _isr[TxIrq].call(); 
+        _isr[TxIrq].call(&this->callbackInfo); 
         return;
     }
     
@@ -40,12 +40,12 @@
         if (buffer_out[TxIrq] >= buffer_size[TxIrq]) {
             buffer_out[TxIrq] = 0;
         }
-        if (doCallback) _isr[TxIrq].call();
+        if (doCallback) _isr[TxIrq].call(&this->callbackInfo);
     }
         
     if ( MODSERIAL_TX_BUFFER_EMPTY ) { 
         _IER = 1;
-        _isr[TxEmpty].call();
+        _isr[TxEmpty].call(&this->callbackInfo);
     }        
 }