diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-20 13:57:43 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-20 13:57:43 +0100 |
commit | 951ed9d02ffc826c68ee3af26c3530477e7e6156 (patch) | |
tree | eb70f46b030031c8601d71d575e36771cf6c5564 /stmhal/uart.h | |
parent | 1163cb9cb5e48153d1a6d723e8577d8ec3821692 (diff) |
stmhal: Fix REPL printing by cooking output sent to stdout_obj.
Recent changes to builtin print meant that print was printing to the
mp_sys_stdout_obj, which was sending data raw to the USB CDC device.
The data should be cooked so that \n turns into \r\n.
Diffstat (limited to 'stmhal/uart.h')
-rw-r--r-- | stmhal/uart.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/stmhal/uart.h b/stmhal/uart.h index 13ac92cbf..7499473c1 100644 --- a/stmhal/uart.h +++ b/stmhal/uart.h @@ -43,14 +43,11 @@ typedef enum { } pyb_uart_t; typedef struct _pyb_uart_obj_t pyb_uart_obj_t; - -extern pyb_uart_obj_t *pyb_uart_global_debug; extern const mp_obj_type_t pyb_uart_type; bool uart_init(pyb_uart_obj_t *uart_obj, uint32_t baudrate); bool uart_rx_any(pyb_uart_obj_t *uart_obj); int uart_rx_char(pyb_uart_obj_t *uart_obj); -void uart_tx_str(pyb_uart_obj_t *uart_obj, const char *str); void uart_tx_strn(pyb_uart_obj_t *uart_obj, const char *str, uint len); void uart_tx_strn_cooked(pyb_uart_obj_t *uart_obj, const char *str, uint len); |