MODSERIAL with support for more devices

Fork of MODSERIAL by Erik -

Revision:
27:9c93ce7cb9d8
Parent:
0:eb2522b41db8
Child:
36:a2ceec937db7
diff -r 91e4dba7ebe2 -r 9c93ce7cb9d8 RESIZE.cpp
--- a/RESIZE.cpp	Mon Jun 10 19:06:21 2013 +0000
+++ b/RESIZE.cpp	Thu Jul 11 13:34:53 2013 +0000
@@ -35,7 +35,7 @@
     if (buffer_size[type] == size) return rval;
     
     // Make sure the ISR cannot use the buffers while we are manipulating them.
-    disableIrq();
+    NVIC_DisableIRQ(_IRQ);
     
     // If the requested buffer size is larger than the current size, 
     // attempt to create a new buffer and use it.
@@ -47,7 +47,7 @@
     }
     
     // Start the ISR system again with the new buffers.
-    enableIrq();
+    NVIC_EnableIRQ(_IRQ);
     
     return rval;
 }