You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+5-17Lines changed: 5 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,22 @@ Sponsors
5
5
6
6
TinyUSB is funded by: Adafruit. Purchasing products from them helps to support this project.
7
7
8
-
.. figure:: /docs/assets/adafruit_logo.svg
8
+
.. figure:: docs/assets/adafruit_logo.svg
9
9
:alt:Adafruit Logo
10
10
:target:https://www.adafruit.com
11
11
12
12
TinyUSB Project
13
13
===============
14
14
15
-
.. figure:: /docs/assets/logo.svg
15
+
.. figure:: docs/assets/logo.svg
16
16
:alt:TinyUSB
17
17
18
18
TinyUSB is an open-source cross-platform USB Host/Device stack for
19
19
embedded system, designed to be memory-safe with no dynamic allocation
20
20
and thread-safe with all interrupt events are deferred then handled in
21
21
the non-ISR task function. Check out the online `documentation <https://docs.tinyusb.org/>`__ for more details.
22
22
23
-
.. figure:: /docs/assets/stack.svg
23
+
.. figure:: docs/assets/stack.svg
24
24
:width:500px
25
25
:alt:stackup
26
26
@@ -43,12 +43,12 @@ Getting started
43
43
44
44
See the `online documentation <https://docs.tinyusb.org>`_ for information about using TinyUSB and how it is implemented.
45
45
46
+
Check out `Getting Started`_ guide for adding TinyUSB to your project or building the examples. If you are new to TinyUSB, we recommend starting with the `cdc_msc` example. There is a handful of `Supported Boards`_ that should work out of the box.
47
+
46
48
We use `GitHub Discussions <https://github.com/hathach/tinyusb/discussions>`_ as our forum. It is a great place to ask questions and advice from the community or to discuss your TinyUSB-based projects.
47
49
48
50
For bugs and feature requests, please `raise an issue <https://github.com/hathach/tinyusb/issues>`_ and follow the templates there.
49
51
50
-
Check out `Getting Started`_ guide for adding TinyUSB to your project or building the examples. If you are new to TinyUSB, we recommend starting with the `cdc_msc` example.
51
-
52
52
See `Porting`_ guide for adding support for new MCUs and boards.
53
53
54
54
Device Stack
@@ -241,15 +241,6 @@ Table Legend
241
241
\[empty\] Unknown
242
242
========= =========================
243
243
244
-
License
245
-
=======
246
-
247
-
All TinyUSB files in the ``src`` folder are licensed under the `MIT
248
-
license <LICENSE>`__. while other files can be
249
-
individually licensed especially those in ``lib`` and ``hw/mcu`` folder.
250
-
Please make sure you understand all the license term for files you use
├── lib # Sources from 3rd party such as freeRTOS, fatfs ...
18
-
├── src # All sources files for TinyUSB stack itself.
19
-
├── test # Tests: unit test, fuzzing, hardware test
20
-
└── tools # Files used internally
21
-
22
-
23
-
Device Stack
24
-
============
25
-
26
-
Supports multiple device configurations by dynamically changing USB descriptors, low power functions such like suspend, resume, and remote wakeup. The following device classes are supported:
27
-
28
-
- Audio Class 2.0 (UAC2)
29
-
- Bluetooth Host Controller Interface (BTH HCI)
30
-
- Communication Device Class (CDC)
31
-
- Device Firmware Update (DFU): DFU mode (WIP) and Runtime
32
-
- Human Interface Device (HID): Generic (In & Out), Keyboard, Mouse, Gamepad etc ...
33
-
- Mass Storage Class (MSC): with multiple LUNs
34
-
- Musical Instrument Digital Interface (MIDI)
35
-
- Network with RNDIS, Ethernet Control Model (ECM), Network Control Model (NCM)
36
-
- Test and Measurement Class (USBTMC)
37
-
- Video class 1.5 (UVC): work in progress
38
-
- 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.
39
-
- `WebUSB <https://github.com/WICG/webusb>`__ with vendor-specific class
40
-
41
-
If you have a special requirement, `usbd_app_driver_get_cb()` can be used to write your own class driver without modifying the stack. Here is how the RPi team added their reset interface `raspberrypi/pico-sdk#197 <https://github.com/raspberrypi/pico-sdk/pull/197>`_
42
-
43
-
Host Stack
44
-
==========
45
-
46
-
- Human Interface Device (HID): Keyboard, Mouse, Generic
47
-
- Mass Storage Class (MSC)
48
-
- Communication Device Class: CDC-ACM
49
-
- Vendor serial over USB: FTDI, CP210x
50
-
- Hub with multiple-level support
51
-
52
-
Similar to the Device Stack, if you have a special requirement, `usbh_app_driver_get_cb()` can be used to write your own class driver without modifying the stack.
53
-
54
-
TypeC PD Stack
55
-
==============
56
-
57
-
- Power Delivery 3.0 (PD3.0) with USB Type-C support (WIP)
58
-
- Super early stage, only for testing purpose
59
-
- Only support STM32 G4
60
-
61
-
OS Abstraction layer
62
-
====================
63
-
64
-
TinyUSB is completely thread-safe by pushing all Interrupt Service Request (ISR) events into a central queue, then processing them later in the non-ISR context task function. It also uses semaphore/mutex to access shared resources such as Communication Device Class (CDC) FIFO. Therefore the stack needs to use some of the OS's basic APIs. Following OSes are already supported out of the box.
- **Mynewt** Due to the newt package build system, Mynewt examples are better to be on its `own repo <https://github.com/hathach/mynewt-tinyusb-example>`_
70
-
71
-
License
72
-
=======
73
-
74
-
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.
0 commit comments