Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ATT_Cellular_IOT_Button Avnet_ATT_Cellular_Pubnub Hiking_Pal Avnet_ATT_Cellular_IOT ... more
Fork of MODSERIAL by
Diff: INIT.cpp
- Revision:
- 25:ae0408ebdd68
- Parent:
- 24:9c456e647a8f
- Child:
- 27:9c93ce7cb9d8
--- a/INIT.cpp Thu Dec 06 13:06:10 2012 +0000
+++ b/INIT.cpp Tue Jan 08 18:01:03 2013 +0000
@@ -57,7 +57,7 @@
buffer_out[RxIrq] = 0;
buffer_count[RxIrq] = 0;
buffer_overflow[RxIrq] = 0;
- Serial::attach( this, &MODSERIAL::isr_rx, (SerialIrq)0 );
+ Serial::attach( this, &MODSERIAL::isr_rx, Serial::RxIrq );
buffer_size[TxIrq] = txSize;
buffer[TxIrq] = txSize > 0 ? (char *)malloc(buffer_size[TxIrq]) : (char *)NULL;
@@ -65,7 +65,7 @@
buffer_out[TxIrq] = 0;
buffer_count[TxIrq] = 0;
buffer_overflow[TxIrq] = 0;
- Serial::attach( this, &MODSERIAL::isr_tx, (SerialIrq)1 );
+ Serial::attach( this, &MODSERIAL::isr_tx, Serial::TxIrq );
}
else {
error("MODSERIAL must have a defined UART to function.");
