MODSERIAL with support for more devices
Fork of MODSERIAL by
Diff: INIT.cpp
- Revision:
- 44:a3b2bc878529
- Parent:
- 30:b04ce87dc424
diff -r 8c8d13e1840b -r a3b2bc878529 INIT.cpp --- a/INIT.cpp Wed Apr 26 06:50:40 2017 +0000 +++ b/INIT.cpp Sun May 07 16:26:36 2017 +0000 @@ -50,7 +50,7 @@ buffer_out[RxIrq] = 0; buffer_count[RxIrq] = 0; buffer_overflow[RxIrq] = 0; - Serial::attach( this, &MODSERIAL::isr_rx, Serial::RxIrq ); + Serial::attach( callback(this, &MODSERIAL::isr_rx), Serial::RxIrq ); buffer_size[TxIrq] = txSize; buffer[TxIrq] = txSize > 0 ? (char *)malloc(buffer_size[TxIrq]) : (char *)NULL; @@ -58,7 +58,7 @@ buffer_out[TxIrq] = 0; buffer_count[TxIrq] = 0; buffer_overflow[TxIrq] = 0; - Serial::attach( this, &MODSERIAL::isr_tx, Serial::TxIrq ); + Serial::attach( callback(this, &MODSERIAL::isr_tx_true), Serial::TxIrq ); } else { error("MODSERIAL must have a defined UART to function.");