MODSERIAL with support for more devices. Added support for LPC4330

Dependents:   HC05_AT_mode GPS_U-blox_NEO-6M_Test_Code GPS_U-blox_NEO-6M_Code UbloxGPSWithThread ... more

Fork of MODSERIAL by Erik -

Revision:
27:9c93ce7cb9d8
Parent:
0:eb2522b41db8
--- 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;
 }