USBUART - IRQ

Dependents:   MPU9250AHRS_UBSUART-IRQ

Fork of MODSERIAL by Andy K

Revision:
26:954edf3d4ec1
Parent:
25:ae0408ebdd68
--- a/MODSERIAL.cpp	Tue Jan 08 18:01:03 2013 +0000
+++ b/MODSERIAL.cpp	Fri Dec 11 01:40:22 2015 +0000
@@ -87,31 +87,31 @@
 MODSERIAL::disableIrq( void )
 {
 
-#ifdef __LPC11UXX_H__
-    NVIC_DisableIRQ( UART_IRQn );
-#else
-    switch( _serial.index ) {
-        case 0:   NVIC_DisableIRQ( UART0_IRQn ); break;
-        case 1:   NVIC_DisableIRQ( UART1_IRQn ); break;
-        case 2:   NVIC_DisableIRQ( UART2_IRQn ); break;
-        case 3:   NVIC_DisableIRQ( UART3_IRQn ); break;
-    }
-#endif
+//#ifdef __LPC11UXX_H__
+//    NVIC_DisableIRQ( UART_IRQn );
+//#else
+//    switch( _serial.index ) {
+//        case 0:   NVIC_DisableIRQ( UART0_IRQn ); break;
+//        case 1:   NVIC_DisableIRQ( UART1_IRQn ); break;
+//        case 2:   NVIC_DisableIRQ( UART2_IRQn ); break;
+//        case 3:   NVIC_DisableIRQ( UART3_IRQn ); break;
+//    }
+//#endif
 }
 
 void
 MODSERIAL::enableIrq(void)
 {
-#ifdef __LPC11UXX_H__
-    NVIC_EnableIRQ( UART_IRQn );
-#else
-    switch( _serial.index ) {
-        case 0:   NVIC_EnableIRQ( UART0_IRQn ); break;
-        case 1:   NVIC_EnableIRQ( UART1_IRQn ); break;
-        case 2:   NVIC_EnableIRQ( UART2_IRQn ); break;
-        case 3:   NVIC_EnableIRQ( UART3_IRQn ); break;
-    }
-#endif
+//#ifdef __LPC11UXX_H__
+//    NVIC_EnableIRQ( UART_IRQn );
+//#else
+//    switch( _serial.index ) {
+//        case 0:   NVIC_EnableIRQ( UART0_IRQn ); break;
+//        case 1:   NVIC_EnableIRQ( UART1_IRQn ); break;
+//        case 2:   NVIC_EnableIRQ( UART2_IRQn ); break;
+//        case 3:   NVIC_EnableIRQ( UART3_IRQn ); break;
+//    }
+//#endif
 }
 
 int