diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-21 12:03:09 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-21 12:03:09 +0100 |
commit | 7533700393b4b5d4858e1f5745be4544b2a970cc (patch) | |
tree | d76bd5859079d5494840670c49fe2886d1fb77e2 /stmhal/usart.h | |
parent | 806f4aef9acd9d8990681b9ba73362d995b59417 (diff) | |
download | micropython-7533700393b4b5d4858e1f5745be4544b2a970cc.tar.gz micropython-7533700393b4b5d4858e1f5745be4544b2a970cc.zip |
stmhal: Rename USART to UART.
It's really a UART because there is no external clock line (and hence no
synchronous ability, at least in the implementation of this module).
USART should be reserved for a module that has "S"ynchronous capabilities.
Also, UART is shorter and easier to type :)
Diffstat (limited to 'stmhal/usart.h')
-rw-r--r-- | stmhal/usart.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/stmhal/usart.h b/stmhal/usart.h deleted file mode 100644 index e7db1db3da..0000000000 --- a/stmhal/usart.h +++ /dev/null @@ -1,30 +0,0 @@ -typedef enum { - PYB_USART_NONE = 0, - PYB_USART_1 = 1, - PYB_USART_2 = 2, - PYB_USART_3 = 3, - PYB_USART_4 = 4, - PYB_USART_5 = 5, - PYB_USART_6 = 6, - -#if defined(PYBV10) - PYB_USART_XA = 4, // USART4 on X1, X2 = PA0, PA1 - PYB_USART_XB = 1, // USART1 on X9, X10 = PB6, PB7 - PYB_USART_YA = 6, // USART6 on Y1, Y2 = PC6, PC7 - PYB_USART_YB = 3, // USART3 on Y9, Y10 = PB10, PB11 -#endif - -} pyb_usart_t; - -typedef struct _pyb_usart_obj_t pyb_usart_obj_t; - -extern pyb_usart_obj_t *pyb_usart_global_debug; -extern const mp_obj_type_t pyb_usart_type; - -bool usart_init(pyb_usart_obj_t *usart_obj, uint32_t baudrate); -bool usart_rx_any(pyb_usart_obj_t *usart_obj); -int usart_rx_char(pyb_usart_obj_t *usart_obj); -void usart_tx_str(pyb_usart_obj_t *usart_obj, const char *str); -void usart_tx_strn(pyb_usart_obj_t *usart_obj, const char *str, uint len); -void usart_tx_strn_cooked(pyb_usart_obj_t *usart_obj, const char *str, uint len); - |