From e285511a23046e3a72b819f183fd83c6949e2cb4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 15 Mar 2014 11:52:29 +0000 Subject: stmhal: Get USB CDC REPL working. New USB HAL is quite a bit improved over previous one. Now has better callbacks and flow control. REPL over USB CDC now works as before, except for soft-reset (since USB driver uses malloc...). --- stmhal/printf.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'stmhal/printf.c') diff --git a/stmhal/printf.c b/stmhal/printf.c index acd9816a5..6fd06508e 100644 --- a/stmhal/printf.c +++ b/stmhal/printf.c @@ -12,9 +12,7 @@ #include "lcd.h" #endif #include "usart.h" -#if 0 #include "usb.h" -#endif #if MICROPY_ENABLE_FLOAT #include "formatfloat.h" @@ -273,12 +271,10 @@ void stdout_print_strn(void *data, const char *str, unsigned int len) { usart_tx_strn_cooked(pyb_usart_global_debug, str, len); any = true; } -#if 0 if (usb_vcp_is_enabled()) { usb_vcp_send_strn_cooked(str, len); any = true; } -#endif if (!any) { #if 0 #if MICROPY_HW_HAS_LCD -- cgit v1.2.3