summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2024-05-15 14:40:23 +1000
committerDamien George <damien@micropython.org>2024-06-04 17:49:19 +1000
commit8809ae71610c2b3af4128c498d711535195d5221 (patch)
treeeb7a59e2f9f7fae9ab01172c5ab71d6cb228b360 /docs/esp8266/tutorial
parentd144f0699de10b10ce42f3013f46d46b8fe97c13 (diff)
shared/tinyusb: Buffer startup CDC data to send to host on connection.
At startup, buffer initial stdout / MicroyPthon banner so that it can be sent to the host on initial connection of the USB serial port. This buffering also works for when the CDC becomes disconnected and the device is still printing to stdout, and when CDC is reconnected the most recent part of stdout (depending on how big the internal USB FIFO is) is flushed to the host. This change is most obvious when you've first plugged in a MicroPython device (or hit reset), when it's a board that uses USB (CDC) serial in the chip itself for the REPL interface. This doesn't apply to UART going via a separate USB-serial chip. The stm32 port already has this buffering behaviour (it doesn't use TinyUSB) and this commit extends such behaviour to rp2, mimxrt, samd and renesas-ra ports, which do use TinyUSB. Signed-off-by: Andrew Leech <andrew@alelec.net>
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions