summaryrefslogtreecommitdiff
path: root/supervisor/shared/usb
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2021-02-27Fix for CIRCUITPY_USB_MSC=0Radomir Dopieralski
Avoid undefined functions when MSC is disabled.
2021-02-24Add the missing argument to the HID functionsKamil Tomaszewski
2021-02-22fix length of generated serial number descriptorJeff Epler
2021-02-21USB descriptors: Save flash storage for serial numberJeff Epler
This saves about 60 bytes (Feather M4 went from 45040 -> 45100 bytes free) 66 bytes of data eliminated, but 6 bytes paid back to initialize the length field.
2021-02-18fix some buildsDan Halbert
2021-02-15wip: usb_cdc.serialsDan Halbert
2021-02-11merge from upstream; complicated webusb mergeDan Halbert
2021-02-05Merge pull request #4122 from hathach/fix-3986Dan Halbert
Fix 3986 background reset remove existing usb callback
2021-02-04usb descriptors all set; rework of enabling for USB devicesDan Halbert
2021-02-04add usb_background_schedule()hathach
unconditionally schedule usb background after background_callback_reset()
2021-02-03Merge branch 'main' into webusb (trying to get CI back online)Kevin Banks
2021-02-03hack to fix 3986hathach
just a proof to show that issue analysis is correct
2021-01-26BOS and MS_OS_2.0 descriptors have been added. Still more descriptor work TODO.Kevin Banks
2021-01-25Most of the code we need has been pulled in from the tinyusb webusb_serial ↵Kevin Banks
demo. Still LOTS to do regarding descriptors.
2021-01-21Switch to upstream TinyUSBScott Shawcroft
2020-12-21unmounted filesystems start as ejectedDan Halbert
2020-11-22wipDan Halbert
2020-11-19wip; not compiling yetDan Halbert
2020-11-16Merge remote-tracking branch 'adafruit/main' into sleepDan Halbert
2020-11-16wip: initial code changes, starting from @tannewt's sleepio branchDan Halbert
2020-11-13Save flash spaceScott Shawcroft
* No weak link for modules. It only impacts _os and _time and is already disabled for non-full builds. * Turn off PA00 and PA01 because they are the crystal on the Metro M0 Express. * Change ejected default to false to move it to BSS. It is set on USB connection anyway. * Set sinc_filter to const. Doesn't help flash but keeps it out of RAM.
2020-10-30improve USB CDC disconnect/reconnect checkingDan Halbert
2020-10-27Start tweaking the workflow to sleepScott Shawcroft
2020-09-17supervisor: Improve serial connection detectionJeff Epler
These changes remove the caveat from supervisor.runtime.serial_connected. It appears that _tud_cdc_connected() only tracks explicit changes to the "DTR" bit, which leads to disconnects not being registered. Instead: * when line state is changed explicitly, track the dtr value in _serial_connected * when the USB bus is suspended, set _serial_connected to False Testing performed (using sam e54 xplained): Run a program to show the state of `serial_connected` on the LED: ``` import digitalio import supervisor import board led = digitalio.DigitalInOut(board.LED) while True: led.switch_to_output(not supervisor.runtime.serial_connected) ``` Try all the following: * open, close serial terminal program - LED status tracks whether terminal is open * turn on/off data lines using the switchable charge-only cable - LED turns off when switch is in "charger" position - LED turns back on when switch is in Data position and terminal is opened (but doesn't turn back on just because switch position is changed)
2020-07-30Merge pull request #3225 from hathach/improve-highspeed-usbJeff Epler
Improve highspeed usb
2020-07-29Merge pull request #3223 from dhalbert/unmount-before-resetScott Shawcroft
storage.erase_filesystem(): disconnect from USB and wait 1 second before resetting
2020-07-29move CFG_TUSB_RHPORT0_MODE into generated headerhathach
2020-07-29remove obsolete CFG in tusb_config.hhathach
2020-07-28storage.erase_filesystem(): unmount and wait 1 second before resettingDan Halbert
2020-07-20supervisor: rename some locals for clarityJeff Epler
It's perfectly OK for these variables with static linkage to have the same name, but it's inconvenient for humans like me.
2020-07-15supervisor: factor out, Handle USB via background callbackJeff Epler
2020-05-21supervisor: support debugging tinyusbSean Cross
Allow for passing `-DCFG_TUSB_DEBUG=1` or `-DCFG_TUSB_DEBUG=2` on the command line to enable debugging tinyusb within circuitpython. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-15Initial ESP32S2 port.Scott Shawcroft
Basic blinky works but doesn't check pins.
2020-04-27Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-04-21Fix USB midi and hid disable.Scott Shawcroft
2020-04-17Update TinyUSB and add interrupt hooks.Scott Shawcroft
2020-03-13First try at lowering the power consumptionScott Shawcroft
2020-02-24Fix Mac crash when waking up with an ejected CIRCUITPYScott Shawcroft
We now correctly set the reason for the unit not being ready and always start the unit. Fixes #2567
2020-02-12Added fix to allow remount when usb enabled but msc is ejectedGadi Rotenberg
2019-12-17Improve USB eject by resetting on replugScott Shawcroft
2019-07-31cleanup adapter.address; add uniquish suffix to BLE device nameDan Halbert
2019-07-24whitespacehathach
2019-07-24update tinyusb lib to 0.5.xhathach
2019-04-12Update font location and shrink a bunch of buildsScott Shawcroft
2019-04-04update tinyusb to fix disconnect/suspend issue with #1681hathach
2019-02-21Add option to disable the concurrent write protectionScott Shawcroft
This allows writing to the filesystem from the host computer and CircuitPython by increasing the risk of filesystem corruption.
2019-02-07Make several const char / const char * arrays static to save a bit of space.Lionel Debroux
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
2019-01-30refactor nrfx from supervisor/usb.chathach
2019-01-30re-init usb hardware when enable/disable SDhathach