From c41999e66b909587442a23288cc974931f29fe26 Mon Sep 17 00:00:00 2001 From: Nils Faerber Date: Sat, 6 Jul 2013 23:18:33 +0200 Subject: [PATCH 1/1] Add option for debug UART on digital watch --- metawatch/mw_uart.c | 5 +++-- metawatch/mw_uart.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/metawatch/mw_uart.c b/metawatch/mw_uart.c index 79b650e..a85ce8c 100644 --- a/metawatch/mw_uart.c +++ b/metawatch/mw_uart.c @@ -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; diff --git a/metawatch/mw_uart.h b/metawatch/mw_uart.h index 477e2b2..d75be9f 100644 --- a/metawatch/mw_uart.h +++ b/metawatch/mw_uart.h @@ -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); -- 2.39.2