1 Star 0 Fork 3

笔落惊风/tinyusb

forked from Dallans/tinyusb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.rst 2.31 KB
一键复制 编辑 原始数据 按行查看 历史
Sven 提交于 2022-05-24 21:45 . fix links in docs

Reference

stackup

representation of the TinyUSB stack.

Device Stack

Supports multiple device configurations by dynamically changing usb descriptors. Low power functions such like suspend, resume, and remote wakeup. Following device classes are supported:

  • Audio Class 2.0 (UAC2)
  • Bluetooth Host Controller Interface (BTH HCI)
  • Communication Class (CDC)
  • Device Firmware Update (DFU): DFU mode (WIP) and Runtinme
  • Human Interface Device (HID): Generic (In & Out), Keyboard, Mouse, Gamepad etc ...
  • Mass Storage Class (MSC): with multiple LUNs
  • Musical Instrument Digital Interface (MIDI)
  • Network with RNDIS, CDC-ECM (work in progress)
  • USB Test and Measurement Class (USBTMC)
  • Vendor-specific class support with generic In & Out endpoints. Can be used with MS OS 2.0 compatible descriptor to load winUSB driver without INF file.
  • WebUSB with vendor-specific class

If you have special need, usbd_app_driver_get_cb() can be used to write your own class driver without modifying the stack. Here is how RPi team add their reset interface raspberrypi/pico-sdk#197

Host Stack

  • Human Interface Device (HID): Keyboard, Mouse, Generic
  • Mass Storage Class (MSC)
  • Hub currently only supports 1 level of hub (due to my laziness)

OS Abstraction layer

TinyUSB is completely thread-safe by pushing all ISR events into a central queue, then process it later in the non-ISR context task function. It also uses semaphore/mutex to access shared resources such as CDC FIFO. Therefore the stack needs to use some of OS's basic APIs. Following OSes are already supported out of the box.

  • No OS
  • FreeRTOS
  • Mynewt Due to the newt package build system, Mynewt examples are better to be on its own repo

License

All TinyUSB sources in the src folder are licensed under MIT license. However, each file can be individually licensed especially those in lib and hw/mcu folder. Please make sure you understand all the license term for files you use in your project.

Index

.. toctree::
   :maxdepth: 2

   supported
   getting_started
   concurrency
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/hucyc/tinyusb.git
[email protected]:hucyc/tinyusb.git
hucyc
tinyusb
tinyusb
master

搜索帮助