Commit 226c034
committed
tools/mpremote: Remove support for pyb.USB_VCP in/out specialisation.
The sys.stdin.buffer and sys.stdout.buffer streams work just as well (and
are just as fast) as pyb.USB_VCP on stm32 devices, so there's no need to
have the USB_VCP specialisation code, which just adds complexity.
Also, on stm32 devices with both USB and UART (or other serial interface),
if something other than the USB_VCP port is used for the serial connection
then mpremote mount will not work because it will default to reading and
writing on USB_VCP instead of the other connected serial stream.
As part of this simplification, support for a second port as input is
removed (this feature was never exposed to the user).
Signed-off-by: Damien George <[email protected]>1 parent 5555f14 commit 226c034
1 file changed
Lines changed: 12 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
48 | 39 | | |
49 | 40 | | |
50 | 41 | | |
| |||
317 | 308 | | |
318 | 309 | | |
319 | 310 | | |
320 | | - | |
321 | | - | |
| 311 | + | |
| 312 | + | |
322 | 313 | | |
323 | 314 | | |
324 | 315 | | |
| |||
571 | 562 | | |
572 | 563 | | |
573 | 564 | | |
574 | | - | |
| 565 | + | |
575 | 566 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | 567 | | |
590 | 568 | | |
591 | 569 | | |
592 | | - | |
| 570 | + | |
593 | 571 | | |
594 | 572 | | |
595 | | - | |
596 | 573 | | |
597 | 574 | | |
598 | 575 | | |
| |||
618 | 595 | | |
619 | 596 | | |
620 | 597 | | |
621 | | - | |
| 598 | + | |
622 | 599 | | |
623 | 600 | | |
624 | 601 | | |
| |||
0 commit comments