Browse code

Add option for debug UART on digital watch

Nils Faerber authored on 06/07/2013 21:18:33
Showing 2 changed files
... ...
@@ -9,7 +9,7 @@
9 9
 
10 10
 static char UART_RX_CHAR = 0;
11 11
 
12
-#if defined MW_DEVBOARD_V2
12
+#if defined MW_DEVBOARD_V2 || MW_DEBUG_UART
13 13
 
14 14
 void debug_uart_tx_char(char c);
15 15
 
... ...
@@ -23,7 +23,8 @@ __interrupt void UCA_ISR (void)
23 23
 			UART_RX_CHAR = UCA3RXBUF;
24 24
 			_event_src |= DBG_UART_RCV_EVENT;
25 25
 			/* wake up to handle the received char */
26
-			LPM3_EXIT;
26
+			// LPM3_EXIT;
27
+			LPM3_EXIT_ISR();
27 28
 			break;
28 29
 		case 4: // TXIFG
29 30
 			break;
... ...
@@ -1,7 +1,7 @@
1 1
 #ifndef _MW_UART_H
2 2
 #define _MW_UART_H
3 3
 
4
-#if defined MW_DEVBOARD_V2
4
+#if defined MW_DEVBOARD_V2 || MW_DEBUG_UART
5 5
 void init_debug_uart(void);
6 6
 void debug_uart_tx_char(const char c);
7 7
 void debug_uart_tx(const char *buf);