summaryrefslogtreecommitdiff
path: root/stm/usart.h
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-26 18:01:48 +0100
committerDamien <damien.p.george@gmail.com>2013-10-26 18:01:48 +0100
commit8f7491a109a555ca897ae49efe98f4cc2b080311 (patch)
treed988eec1cb50f28b2d193721e54ac277e568aa8b /stm/usart.h
parent9281cd66c9e0c82608259d8f345e4136cd6e0990 (diff)
Add USART support, connected to stdio for REPL.
Diffstat (limited to 'stm/usart.h')
-rw-r--r--stm/usart.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/stm/usart.h b/stm/usart.h
new file mode 100644
index 000000000..9d92e59f5
--- /dev/null
+++ b/stm/usart.h
@@ -0,0 +1,7 @@
+void usart_init(void);
+bool usart_is_enabled(void);
+bool usart_rx_any(void);
+int usart_rx_char(void);
+void usart_tx_char(int c);
+void usart_tx_str(const char *str);
+void usart_tx_strn_cooked(const char *str, int len);