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/modpyb.c | |
parent | 806f4aef9acd9d8990681b9ba73362d995b59417 (diff) |
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/modpyb.c')
-rw-r--r-- | stmhal/modpyb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 6fb5cdd84..18507f9ef 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -20,7 +20,7 @@ #include "rtc.h" #include "i2c.h" #include "spi.h" -#include "usart.h" +#include "uart.h" #include "adc.h" #include "storage.h" #include "sdcard.h" @@ -292,7 +292,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_LED), (mp_obj_t)&pyb_led_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_I2C), (mp_obj_t)&pyb_i2c_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_SPI), (mp_obj_t)&pyb_spi_type }, - { MP_OBJ_NEW_QSTR(MP_QSTR_USART), (mp_obj_t)&pyb_usart_type }, + { MP_OBJ_NEW_QSTR(MP_QSTR_UART), (mp_obj_t)&pyb_uart_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&pyb_adc_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_ADCAll), (mp_obj_t)&pyb_adc_all_type }, |