From: Nils Faerber Date: Sat, 6 Jul 2013 21:18:33 +0000 (+0200) Subject: Add option for debug UART on digital watch X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=commitdiff_plain;h=c41999e66b909587442a23288cc974931f29fe26 Add option for debug UART on digital watch --- 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);