r/BestGitHubRepos • • 1d ago

๐Ÿ›  Developer tools TinyUSB: An open source cross-platform USB stack for embedded system (7.3k stars)

What it does

All text below is quoted directly from the project README.

TinyUSB is an open-source cross-platform USB Host/Device stack for embedded systems.

Key Features:

  • Thread-safe: USB interrupts deferred to task context
  • Memory-safe: No dynamic allocation, all buffers static
  • Portable: Supports 50+ MCU families
  • Comprehensive: Includes CDC, HID, MSC, Audio, and Host support
  • RTOS-friendly: Works with bare metal, FreeRTOS, RT-Thread, and Mynewt

If you are new to TinyUSB, we recommend starting with the cdc_msc example.

How it works

TinyUSB is an open-source cross-platform USB host and device stack for embedded systems, written for memory safety and thread safety. It uses no dynamic allocation, with all buffers static, and defers USB interrupts to task functions instead of running work inside the interrupt handler. The repository is laid out with docs, examples, hw/bsp for supported boards, hw/mcu for low-level MCU drivers and lib for third-party sources. It supports more than 50 MCU families and device classes such as CDC, HID, MSC and Audio, plus host support. It works with bare metal, FreeRTOS, RT-Thread and Mynewt. The Getting Started guide recommends beginning with the cdc_msc example, built with make or cmake.

Repository

https://github.com/hathach/tinyusb

More about this repo on our website: https://bestgithubrepositories.com/hathach/tinyusb

Repository stats

MetricValue
Stars7,283
Forks1.6k
Last release0.21.0 (2026-06-30)
LanguagesC 75.4%, Python 13.5%, Linker Script 5.9%
Contributors340
AI contributor accounts (Claude / Codex / Cursor / Copilot)@Copilot (60 commits)
AI co-authored commitsClaude: 174, Cursor: 4, Copilot: 38

Main contributor

FieldValue
NameHa Thach
GitHub@hathach
Commits to this repo7,668 (top contributor)
BioCreator of TinyUSB ยท New dad of twins Coding between feedings
Company / Location@adafruit / Vietnam
Websitewww.tinyusb.org
X / Twitter@tinyusb
Followers3.9k
Public repos52
On GitHub since2010

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐Ÿ“Œ Please support our community by subscribing to our newsletter.

Every Monday and Thursday we send the 10 best repos shared here, plus what developers said about each one in the comments. It's free, it takes two minutes to read, and every new subscriber helps r/BestGitHubRepos grow.

๐Ÿ“ฌ Subscribe free to the Best GitHub Repos newsletter

34 Upvotes

0 comments sorted by