aboutsummaryrefslogtreecommitdiff
path: root/stm/usart.h
diff options
context:
space:
mode:
authormux2014-01-09 13:36:13 +0200
committermux2014-01-09 13:36:13 +0200
commitc70ac7bf71811ce17ff422b9448e1129bf438bd2 (patch)
treec8a835b99bae46f39af011f96498b10bf99b60ca /stm/usart.h
parentd944a66ead38b15b5a3c7a4ae8b054451fd5c077 (diff)
Add USART Micro Python Bindings
* Add Micro Python bindings to usart.c * Export USART python object to namespace pyb
Diffstat (limited to 'stm/usart.h')
-rw-r--r--stm/usart.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/stm/usart.h b/stm/usart.h
index 9d92e59f5..15ed419fe 100644
--- a/stm/usart.h
+++ b/stm/usart.h
@@ -1,7 +1 @@
-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);
+mp_obj_t pyb_Usart(mp_obj_t usart_id, mp_obj_t baudrate);