Browse code

Add option for debug UART on digital watch

Nils Faerber authored on 06/07/2013 21:18:33
Showing 1 changed files
... ...
@@ -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);
Browse code

Here we are! MetaWatch support in Oswald!

Nils Faerber authored on 27/04/2013 20:22:32
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+#ifndef _MW_UART_H
2
+#define _MW_UART_H
3
+
4
+#if defined MW_DEVBOARD_V2
5
+void init_debug_uart(void);
6
+void debug_uart_tx_char(const char c);
7
+void debug_uart_tx(const char *buf);
8
+char debug_uart_rx_char(char *c);
9
+void debug_dump_hex(const uint16_t len, const void *buf);
10
+void debug_dump_ascii(const uint16_t len, const void *buf);
11
+#else
12
+#define debug_uart_tx(args...) {}
13
+#define debug_uart_tx_char(args...) {}
14
+#define debug_dump_hex(args...) {}
15
+#define debug_dump_ascii(args...) {}
16
+#endif
17
+
18
+#endif
19
+