]> git.karo-electronics.de Git - oswald.git/blobdiff - metawatch/mw_uart.c
Add option for debug UART on digital watch
[oswald.git] / metawatch / mw_uart.c
index 79b650e7f73ca46373c476c541f4a3f1b2011850..a85ce8c063b79e2ee0c5383f4877b915d3ba647d 100644 (file)
@@ -9,7 +9,7 @@
 
 static char UART_RX_CHAR = 0;
 
-#if defined MW_DEVBOARD_V2
+#if defined MW_DEVBOARD_V2 || MW_DEBUG_UART
 
 void debug_uart_tx_char(char c);
 
@@ -23,7 +23,8 @@ __interrupt void UCA_ISR (void)
                        UART_RX_CHAR = UCA3RXBUF;
                        _event_src |= DBG_UART_RCV_EVENT;
                        /* wake up to handle the received char */
-                       LPM3_EXIT;
+                       // LPM3_EXIT;
+                       LPM3_EXIT_ISR();
                        break;
                case 4: // TXIFG
                        break;