summaryrefslogtreecommitdiff
path: root/ports/stm32/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-05-18 23:01:36 +1000
committerDamien George <damien.p.george@gmail.com>2019-05-30 21:11:04 +1000
commit0c29502ad995cfacc3b11f26a135707a06b8c27d (patch)
tree02f59087040aa360865af801ade5232340714abe /ports/stm32/main.c
parenta4f1d82757b8e95c21a095c99b7c3f04ded88104 (diff)
stm32/usb: Refactor CDC VCP code to enable N CDC interfaces.
The board config option MICROPY_HW_USB_ENABLE_CDC2 is now changed to MICROPY_HW_USB_CDC_NUM, and the latter should be defined to the maximum number of CDC interfaces to support (defaults to 1).
Diffstat (limited to 'ports/stm32/main.c')
-rw-r--r--ports/stm32/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c
index ff4589f9d..02449a1b8 100644
--- a/ports/stm32/main.c
+++ b/ports/stm32/main.c
@@ -558,10 +558,6 @@ soft_reset:
#if MICROPY_HW_ENABLE_USB
pyb_usb_init0();
-
- // Activate USB_VCP(0) on dupterm slot 1 for the REPL
- MP_STATE_VM(dupterm_objs[1]) = MP_OBJ_FROM_PTR(&pyb_usb_vcp_obj);
- usb_vcp_attach_to_repl(&pyb_usb_vcp_obj, true);
#endif
// Initialise the local flash filesystem.