]> git.karo-electronics.de Git - oswald.git/blob - metawatch/mw_uart.h
Shorten charger plug "tail"
[oswald.git] / metawatch / mw_uart.h
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