summaryrefslogtreecommitdiff
path: root/stmhal/printf.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-21 12:03:09 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-21 12:03:09 +0100
commit7533700393b4b5d4858e1f5745be4544b2a970cc (patch)
treed76bd5859079d5494840670c49fe2886d1fb77e2 /stmhal/printf.c
parent806f4aef9acd9d8990681b9ba73362d995b59417 (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/printf.c')
-rw-r--r--stmhal/printf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c
index ea90f4980..a1e754aed 100644
--- a/stmhal/printf.c
+++ b/stmhal/printf.c
@@ -12,7 +12,7 @@
#if 0
#include "lcd.h"
#endif
-#include "usart.h"
+#include "uart.h"
#include "usb.h"
#if MICROPY_ENABLE_FLOAT
@@ -170,11 +170,11 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, va_list args) {
}
void stdout_print_strn(void *data, const char *str, unsigned int len) {
- // send stdout to USART, USB CDC VCP, and LCD if nothing else
+ // send stdout to UART, USB CDC VCP, and LCD if nothing else
bool any = false;
- if (pyb_usart_global_debug != PYB_USART_NONE) {
- usart_tx_strn_cooked(pyb_usart_global_debug, str, len);
+ if (pyb_uart_global_debug != PYB_UART_NONE) {
+ uart_tx_strn_cooked(pyb_uart_global_debug, str, len);
any = true;
}
if (usb_vcp_is_enabled()) {