Fork of the MODSERIAL library by Erik Olieman.

Dependents:   trs_master

Fork of MODSERIAL by Erik -

Revision:
21:af2af4c61c2f
Parent:
20:59c74aaedda2
Child:
24:fca9bb26ca15
Child:
30:9c456e647a8f
--- a/MODSERIAL.h	Tue Apr 26 08:12:45 2011 +0000
+++ b/MODSERIAL.h	Tue May 10 08:07:27 2011 +0000
@@ -428,7 +428,7 @@
      * @param  type Which serial interrupt to attach the member function to (Seriall::RxIrq for receive, TxIrq for transmit buffer empty)
      */
     template<typename T>
-    void attach(T* tptr, uint32_t (T::*mptr)(uint32_t), IrqType type = RxIrq) {
+    void attach(T* tptr, void (T::*mptr)(MODSERIAL_IRQ_INFO *), IrqType type = RxIrq) {
         if((mptr != 0) && (tptr != 0)) {
             _isr[type].attach(tptr, mptr);            
         }