summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/usart.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-25 23:40:54 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-25 23:40:54 +0000
commit38f0c607b0626ecee9cb2e4aefb25c3756232dab (patch)
tree3c6b20ee33d607d5ae86252f0a2055ec4f35953d /stmhal/usart.h
parent30216325010e198c2e73ea41811ae63ea5ee3991 (diff)
downloadmicropython-38f0c607b0626ecee9cb2e4aefb25c3756232dab.tar.gz
micropython-38f0c607b0626ecee9cb2e4aefb25c3756232dab.zip
stmhal: Change Usart creation function to class make_new.
Diffstat (limited to 'stmhal/usart.h')
-rw-r--r--stmhal/usart.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/stmhal/usart.h b/stmhal/usart.h
index c7119c833e..02464080b8 100644
--- a/stmhal/usart.h
+++ b/stmhal/usart.h
@@ -15,6 +15,7 @@ typedef enum {
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;
void usart_init(pyb_usart_obj_t *usart_obj, uint32_t baudrate);
bool usart_rx_any(pyb_usart_obj_t *usart_obj);
@@ -23,6 +24,3 @@ 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);
-mp_obj_t pyb_Usart(mp_obj_t usart_id, mp_obj_t baudrate);
-
-MP_DECLARE_CONST_FUN_OBJ(pyb_Usart_obj);