Fork of MODSERIAL that works with LPC4088

Fork of MODSERIAL by Andy K

Revision:
18:21ef26402365
Parent:
12:8c7394e2ae7f
diff -r 6c9b57c14868 -r 21ef26402365 ISR_TX.cpp
--- 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);
     }        
 }