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: components/drivers/usb/cherryusb/README.md
+67-73Lines changed: 67 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,31 +14,31 @@ CherryUSB is a tiny and beautiful, high performance and portable USB host and de
14
14
15
15
## Why choose CherryUSB
16
16
17
-
### Easy to study USB
17
+
### Easy to Learn USB
18
18
19
-
In order to make it easier for users to learn USB basics, enumeration, driver loading and IP drivers, the code has been written with the following advantages:
19
+
To facilitate user learning of USB fundamentals, enumeration, driver loading, and IP drivers, the written code has the following advantages:
20
20
21
-
-Lean code, simple logic, no complex C syntax
22
-
- Tree-based programming with cascading code
23
-
-Class-drivers and porting-drivers are templating and simplification
24
-
- Clear API classification (slave: initialisation, registration api, command callback api, data sending and receiving api; host: initialisation, lookup api, data sending and receiving api)
21
+
-Streamlined code with simple logic and no complex C language syntax
22
+
- Tree-structured programming with progressive code layers
23
+
-Templated and simplified Class drivers and porting drivers
24
+
- Clear API categorization (Device: initialization, class registration, command callbacks, data transmission; Host: initialization, class discovery, data transmission)
25
25
26
-
### Easy to use USB
26
+
### Easy to Use USB
27
27
28
-
In order to facilitate the use of the USB interface and to take into account the fact that users have learned about uart and dma, the following advantages have been designed for the data sending and receiving class of interface:
28
+
To facilitate user interaction with USB interfaces, considering users’ familiarity with UART and DMA, the designed data transmission interface has the following advantages:
29
29
30
-
- Equivalent to using uart tx dma/uart rx dma
31
-
-There is no limit to the length of send and receive, the user does not need to care about the USB packetization process (the porting driver does it)
30
+
- Equivalent to using UART TX DMA/UART RX DMA
31
+
-No length restrictions on transmission/reception; users don’t need to worry about USB packetization (porting drivers handle packetization)
32
32
33
-
### Easy to bring out USB performance
33
+
### Easy to Achieve USB Performance
34
34
35
-
Taking into account USB performance issues and trying to achieve the theoretical bandwidth of the USB hardware, the design of the data transceiver class interface has the following advantages:
35
+
Considering USB performance requirements to reach theoretical USB hardware bandwidth, the designed data transmission interface has the following advantages:
36
36
37
-
- Porting drivers directly to registers, no abstraction layer encapsulation
37
+
- Porting drivers directly interface with registers without abstraction layer encapsulation
38
38
- Memory zero copy
39
-
-If IP has DMA then uses DMA mode (DMA with hardware packetization)
40
-
-Unlimited length make it easier to interface with hardware DMA and take advantage of DMA
41
-
- Packetization is handled in interrupt
39
+
-DMA mode used when IP supports DMA (DMA provides hardware packetization functionality)
Among them, `sizeof(struct usbh_hub)` and `sizeof(struct usbh_hubport)` are affected by the following macros:
142
156
@@ -176,55 +190,35 @@ Only standard and commercial USB IP are listed.
176
190
| CDNS3(cadence) | CDNS3 | XHCI | × |
177
191
| DWC3(synopsys) | DWC3 | XHCI | × |
178
192
179
-
## Documentation Tutorial
180
-
181
-
Quickly start, USB basic concepts, API manual, Class basic concepts and examples, see [CherryUSB Documentation Tutorial](https://cherryusb.readthedocs.io/).
0 commit comments