circuitpython/shared/tinyusb
robert-hh a734ee9057 shared/tinyusb/mp_usbd_cdc: Skip writing to an uninitialized USB device.
During execution of `boot.py` the USB device is not yet initialized.  Any
attempt to write to the CDC (eg calling `print()`) would lock up the
device.  This commit skips writing when the USB device is not initialized.
Any output from `boot.py` is lost, but the device does not lock up.

Also removed unnecessary declaration of `tusb_init()`.

Signed-off-by: robert-hh <robert@hammelrath.com>
2024-07-20 00:27:58 +10:00
..
mp_usbd.c extmod/machine_usb_device: Add support for Python USB devices. 2024-03-15 14:22:11 +11:00
mp_usbd.h shared/tinyusb/mp_usbd_cdc: Skip writing to an uninitialized USB device. 2024-07-20 00:27:58 +10:00
mp_usbd_cdc.c shared/tinyusb/mp_usbd_cdc: Skip writing to an uninitialized USB device. 2024-07-20 00:27:58 +10:00
mp_usbd_cdc.h shared/tinyusb: Allow ports to use 1200bps-touch without other CDC code. 2024-06-02 23:27:33 +10:00
mp_usbd_descriptor.c extmod/machine_usb_device: Add support for Python USB devices. 2024-03-15 14:22:11 +11:00
mp_usbd_runtime.c shared/tinyusb/mp_usbd_runtime: Fix pointer comparison in assert. 2024-06-26 13:57:45 +10:00
tusb_config.h shared/tinyusb: Buffer startup CDC data to send to host on connection. 2024-06-04 17:49:19 +10:00