diff options
| author | mux <freelancer.c@gmail.com> | 2014-01-09 13:36:13 +0200 |
|---|---|---|
| committer | mux <freelancer.c@gmail.com> | 2014-01-09 13:36:13 +0200 |
| commit | c70ac7bf71811ce17ff422b9448e1129bf438bd2 (patch) | |
| tree | c8a835b99bae46f39af011f96498b10bf99b60ca /stm/main.c | |
| parent | d944a66ead38b15b5a3c7a4ae8b054451fd5c077 (diff) | |
Add USART Micro Python Bindings
* Add Micro Python bindings to usart.c
* Export USART python object to namespace pyb
Diffstat (limited to 'stm/main.c')
| -rw-r--r-- | stm/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stm/main.c b/stm/main.c index fbbb35039..776b0f2ac 100644 --- a/stm/main.c +++ b/stm/main.c @@ -852,8 +852,9 @@ soft_reset: rt_store_attr(m, qstr_from_str_static("rand"), rt_make_function_0(pyb_rng_get)); rt_store_attr(m, qstr_from_str_static("Led"), rt_make_function_1(pyb_Led)); rt_store_attr(m, qstr_from_str_static("Servo"), rt_make_function_1(pyb_Servo)); - rt_store_attr(m, qstr_from_str_static("I2C"), rt_make_function_2(pyb_I2C)); + rt_store_attr(m, qstr_from_str_static("I2C"), rt_make_function_2(pyb_I2C)); rt_store_attr(m, qstr_from_str_static("gpio"), (mp_obj_t)&pyb_gpio_obj); + rt_store_attr(m, qstr_from_str_static("Usart"), rt_make_function_2(pyb_Usart)); rt_store_name(qstr_from_str_static("pyb"), m); rt_store_name(qstr_from_str_static("open"), rt_make_function_2(pyb_io_open)); |
