{"full_name":"hathach/tinyusb","owner":"hathach","name":"tinyusb","shard":"1","url":"https://github.com/hathach/tinyusb","description":"An open source  cross-platform USB stack for embedded system","homepage":"https://www.tinyusb.org","topics":["embedded","usb","usb-host","usb-devices","usb-hid","usb-cdc","usb-drive","midi","webusb","msc","tinyusb"],"tag_pages":["embedded","usb"],"language":"C","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/249515?u=5cc8dcf0f9bb8ea773f3aeb7e0ad0bed574cf37a&v=4","created_at":"2012-11-26T06:24:00Z","pushed_at":"2026-11-27T19:21:44Z","metrics":{"stars":7305,"forks":1592,"watchers":140,"issues":1240,"prs":2342,"releases":18,"issues_open":349,"issues_closed":891,"prs_open":36,"prs_closed":301,"prs_merged":2005,"discussions":882},"growth":{"day":{"stars":3,"forks":1,"base_day":"2026-11-27"},"week":{"stars":18,"forks":5,"base_day":"2026-11-21"}},"history":{"dates":["2026-11-20","2026-11-21","2026-11-22","2026-11-23","2026-11-24","2026-11-25","2026-11-26","2026-11-27","2026-11-28"],"stars":[7283,7287,7292,7296,7298,7301,7302,7302,7305],"forks":[1587,1587,1587,1588,1588,1588,1590,1591,1592],"watchers":[140,140,140,140,140,140,140,140,140],"issues_open":[341,341,340,340,345,349,350,350,349],"prs_open":[27,23,23,25,26,35,36,38,36]},"boards":{},"same_owner":[],"issues":[{"number":289,"title":"check usbnet example with all ports","comments":31,"created_at":"2020-03-03T16:44:03Z"},{"number":458,"title":"zephyr port","comments":23,"created_at":"2020-07-06T16:22:07Z"},{"number":3805,"title":"RP2xxx MIDI Host: Panic on MIDI Device unplug","comments":18,"created_at":"2026-08-01T04:33:59Z"},{"number":435,"title":"\"Set Address failed\" error on Windows","comments":17,"created_at":"2020-06-18T12:46:10Z"},{"number":2139,"title":"uvc bulk","comments":16,"created_at":"2023-07-04T06:03:37Z"},{"number":920,"title":"High-speed streaming capacity of CDC class","comments":16,"created_at":"2021-06-24T16:56:26Z"},{"number":2374,"title":"STM32F7: DIEPINT_TOC with ARM (Apple silicon) Mac","comments":15,"created_at":"2023-12-12T19:04:02Z"},{"number":812,"title":"Stack with usb hub and keyboard doesn't enumerate completeley","comments":14,"created_at":"2021-04-30T10:03:17Z"}],"discussions":[{"number":4625,"title":"CDC with usbser.sys randomly loses packets","comments":2,"category":"Q&A","created_at":"2026-11-27T13:31:38Z"},{"number":4547,"title":"Intermittent audio pops with Android standard USB Audio driver, but not with HF Player USB driver","comments":1,"category":"Q&A","created_at":"2026-11-17T13:39:48Z"},{"number":4431,"title":"OpenDeviceDB: source links from board models to TinyUSB examples","comments":0,"category":"General","created_at":"2026-11-04T21:10:10Z"},{"number":4347,"title":"USB-MIDI device: multi-event burst withheld until the *next* transfer","comments":1,"category":"General","created_at":"2026-10-27T14:02:16Z"},{"number":4324,"title":"STM32C0 DFU Slower When Not Behind Hub","comments":0,"category":"Q&A","created_at":"2026-10-26T00:12:04Z"},{"number":4290,"title":"Help required with UAC2 2.1 speaker descriptor/code","comments":2,"category":"Q&A","created_at":"2026-10-22T21:00:38Z"},{"number":3926,"title":"Need help with Quest 2S","comments":0,"category":"General","created_at":"2026-09-16T09:54:54Z"},{"number":3921,"title":"[STM32F103C8T6, Device, HID] Incorrect initalisation of end points that results IRQ status -75 on the host after HID report was send","comments":1,"category":"Q&A","created_at":"2026-09-15T05:10:28Z"}],"latest_release":{"name":"0.21.0","tag":"0.21.0","published_at":"2026-06-30T15:29:00Z","body":"# 0.21.0\r\n\r\n*June 29, 2026*\r\n\r\n## General\r\n\r\n### New MCUs and Boards\r\n\r\n- Add HPMicro HPM6xxx support with HPM6750EVK2 board\r\n- Add NXP RW61x (RW612, ChipIdea high-speed) support\r\n- Add Artery AT32F45x series support\r\n- Add STM32C5 series support\r\n- Add Espressif ESP32-S31 (high-speed) support\r\n- Add WCH CH582/CH583 (USBFS) support\r\n- Add CH32V103 USB device support (combined-control USBFS) with CH32V103C8T6 Bluepill board\r\n- Add FreeRTOS support for RP2040/RP2350\r\n- New boards: nRF54LM20-DK, WeAct STM32H743, EK-TM4C1294XL, STM32H747-DISCO, NUCLEO-H533RE\r\n- Migrate i.MX RT to the new `mcux-devices-rt` SDK package\r\n\r\n### Code Quality and Build\r\n\r\n- Major refactor of dedicated hardware-FIFO (HWFIFO) handling: omit per-endpoint RAM buffers on ports with a dedicated hardware FIFO, add stride-aware FIFO access, and store raw bytes in `tusb_fifo`\r\n- Reduce code size via control/descriptor and stream refactors, and remove `snprintf` usage\r\n- Remove IAR toolchain support from the Make build; add IAR warning flags and resolve warnings in CMake\r\n- Fix Zephyr build with nrfx v4, C++/`-Werror=extra` builds, and various `-Wconversion` warnings\r\n- Update FatFS to R0.16\r\n- Fix the fuzzing harness\r\n- Various BSP fixes (STM32H5 UID read with ICACHE, STM32F411 Black Pill HSE, RT1011 data cache, Teensy)\r\n\r\n### Documentation\r\n\r\n- Add a README for every example and `build-doc` tooling\r\n- Add Sponsors section and `FUNDING` configuration\r\n- Various README/doc fixes (FTDI host, STM32C071 Nucleo URL, Supported CPUs table)\r\n\r\n## API Changes\r\n\r\n- Add `is_isr` parameter to `dcd_edpt_xfer`, `dcd_edpt_xfer_fifo`, `usbd_edpt_xfer` and `usbd_edpt_xfer_fifo`\r\n- Remove the no-FIFO mode from the endpoint stream API\r\n- Add `tud_vendor_write_clear()` to forcefully clear the TX buffer\r\n- Add `tud_midi_n_demux_stream_read()` cable-aware MIDI stream read\r\n- Add `CFG_TUH_HID_SET_PROTOCOL_ON_ENUM` host HID option\r\n- Add `CFG_TUSB_DEBUG_BREAKPOINT` hook for `TU_BREAKPOINT`\r\n- Add ThreadX OSAL support\r\n- `tud_task_ext()` / `tuh_task_ext()` now limit the number of events processed per call\r\n- Replace `CFG_TUD_NET_ENDPOINT_SIZE` with the descriptor-based endpoint size\r\n\r\n## Device Stack\r\n\r\n### USBD Core\r\n\r\n- Refactor and validate device descriptor handling; move control transfer handling into `usbd.c`\r\n- Use the EP0 buffer directly when large enough; clamp EP0 OUT data copy to the control buffer\r\n- Fix stream write logic/racing without FIFO; fix zero `wLength` control request\r\n- Fix ISO OUT endpoint failure on alt-setting MPS change\r\n\r\n### Audio\r\n\r\n- Fix `audiod_open` with MIDI interfaces\r\n- Fix big-endian bitfield guards for audio structs and endian-safe `wValue`/`wIndex` extraction in UAC2 examples\r\n\r\n### CDC\r\n\r\n- Remove `tud_cdc_configure`\r\n- Fix CDC echo test issue on i.MX RT and fast MCUs\r\n\r\n### HID\r\n\r\n- Bound item size to remaining length in the report-descriptor parser\r\n- Remove host enumeration assumption; add `CFG_TUH_HID_SET_PROTOCOL_ON_ENUM`\r\n\r\n### MIDI\r\n\r\n- Add USB-MIDI 2.0 device and host class drivers\r\n- Add cable-aware stream read `tud_midi_n_demux_stream_read()`\r\n- Fix MIDI host issue\r\n\r\n### MSC\r\n\r\n- Skip the command stage if the OUT endpoint is stalled\r\n- Cap `tud_msc_scsi_cb` buffer size to the endpoint buffer size\r\n\r\n### MTP\r\n\r\n- Fix transfer completion detection for exact-length packets; queue ZLP when needed\r\n- Fix premature phase change after a short OUT transfer; fixes in `add_string`\r\n\r\n### Network (NCM)\r\n\r\n- Fix NCM state on restart\r\n- Support `SetEthernetPacketFilter` and `SetNtbInputSize` requests\r\n- Add a weak callback for the initial link state\r\n\r\n### Video (UVC)\r\n\r\n- Fix VC interface parsing when `bNumEndpoints` != 0\r\n- Assert the `usbd_edpt_iso_activate()` result\r\n\r\n### DFU\r\n\r\n- Fix the DFU functional descriptor version (1.0.1 → 1.1.0)\r\n\r\n### Printer\r\n\r\n- Add the USB Printer device class driver\r\n\r\n### Vendor\r\n\r\n- Omit the endpoint buffer for ports with a dedicated hardware FIFO\r\n\r\n## Host Stack\r\n\r\n- Fully asynchronous host code: remove block","is_prerelease":false},"readme":false,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-28T10:06:57Z","history_start":"2026-09-06"}