Fork of the MODSERIAL library by Erik Olieman.

Dependents:   trs_master

Fork of MODSERIAL by Erik -

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Wed Dec 12 07:27:21 2012 +0000
Parent:
27:5f402fed53e2
Child:
29:a469aa702bab
Commit message:
Fixed new attach of interrupts

Changed in this revision

ChangeLog.c Show annotated file Show diff for this revision Revisions of this file
INIT.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ChangeLog.c	Mon Nov 26 09:26:57 2012 +0000
+++ b/ChangeLog.c	Wed Dec 12 07:27:21 2012 +0000
@@ -1,5 +1,17 @@
 /* $Id:$
 
+Erik Olieman 
+***********************
+1.25    12th December 2012
+        Fixed the attach of Serial interrupts (again) with new release
+        
+1.24    28th November 2012
+        Fixed attach of Serial interrupts with new mbed library
+        Fixed _uidx being renamed
+        Removed *char argument from constructor since it was removed from Serial
+        
+**********************
+
 1.23    25th July 2012
 
     * LPC1768 code as was. This release includes "alpha" support for the LPC11U24
--- a/INIT.cpp	Mon Nov 26 09:26:57 2012 +0000
+++ b/INIT.cpp	Wed Dec 12 07:27:21 2012 +0000
@@ -58,7 +58,7 @@
         buffer_out[RxIrq]      = 0;
         buffer_count[RxIrq]    = 0;
         buffer_overflow[RxIrq] = 0;
-        Serial::attach(this, &MODSERIAL::isr_rx, (SerialIrq)RxIrq);        
+        Serial::attach(this, &MODSERIAL::isr_rx, Serial::RxIrq);        
         
         buffer_size[TxIrq]     = txSize;
         buffer[TxIrq]          = txSize > 0 ? (char *)malloc(buffer_size[TxIrq]) : (char *)NULL;
@@ -66,7 +66,7 @@
         buffer_out[TxIrq]      = 0;
         buffer_count[TxIrq]    = 0;
         buffer_overflow[TxIrq] = 0;
-        Serial::attach(this, &MODSERIAL::isr_tx, (SerialIrq)TxIrq);
+        Serial::attach(this, &MODSERIAL::isr_tx, Serial::TxIrq);
     }
     else {
         error("MODSERIAL must have a defined UART to function.");