summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/printf.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-15 11:52:29 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-15 11:52:29 +0000
commite285511a23046e3a72b819f183fd83c6949e2cb4 (patch)
treee56d0acb1463bee4008b2da8030a97b2ea0b366d /stmhal/printf.c
parent87e423b8661c2a058307125fd3a47dfc32cca888 (diff)
downloadmicropython-e285511a23046e3a72b819f183fd83c6949e2cb4.tar.gz
micropython-e285511a23046e3a72b819f183fd83c6949e2cb4.zip
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...).
Diffstat (limited to 'stmhal/printf.c')
-rw-r--r--stmhal/printf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c
index acd9816a55..6fd06508ea 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