]> git.karo-electronics.de Git - oswald.git/commitdiff
Add option for debug UART on digital watch
authorNils Faerber <nils.faerber@kernelconcepts.de>
Sat, 6 Jul 2013 21:18:33 +0000 (23:18 +0200)
committerNils Faerber <nils.faerber@kernelconcepts.de>
Sat, 6 Jul 2013 21:18:33 +0000 (23:18 +0200)
metawatch/mw_uart.c
metawatch/mw_uart.h

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;
index 477e2b2bd367522c48490e32d0875c9079c65abb..d75be9f5c3091c21991c6ae8e5ffbf2a100a5c9a 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _MW_UART_H
 #define _MW_UART_H
 
-#if defined MW_DEVBOARD_V2
+#if defined MW_DEVBOARD_V2 || MW_DEBUG_UART
 void init_debug_uart(void);
 void debug_uart_tx_char(const char c);
 void debug_uart_tx(const char *buf);