|
|
4 年之前 | |
|---|---|---|
| class | 4 年之前 | |
| common | 4 年之前 | |
| core | 4 年之前 | |
| demo | 4 年之前 | |
| docs | 4 年之前 | |
| packet capture | 4 年之前 | |
| port | 4 年之前 | |
| .clang-format | 4 年之前 | |
| .gitignore | 4 年之前 | |
| LICENSE | 4 年之前 | |
| README.md | 4 年之前 | |
| README_zh.md | 4 年之前 | |
| SConscript | 4 年之前 |
USB Stack is a tiny, beautiful and portable USB host and device stack for embedded system.
.
├── class
│ ├── audio
│ ├── cdc
│ ├── dfu
│ ├── hid
│ ├── hub
│ ├── midi
│ ├── msc
│ ├── tmc
│ └── video
├── common
├── core
├── demo
│ ├── bouffalolab
│ └── stm32
│ └── mm32
├── docs
├── packet capture
└── port
├── bouffalolab
│ └── bl702
├── ch32
├── fsdev
├── mm32
├── stm32
├── synopsys
└── template
| Directory | Description |
|---|---|
| class | usb class driver |
| common | usb spec macros and utils |
| core | usb core implementation |
| demo | different chip demo |
| docs | doc for guiding |
| packet capture | packet capture file |
| port | usb dcd and hcd porting |
USB Device Stack provides a unified framework of functions for standard device requests, CLASS requests, VENDOR requests and custom special requests. The object-oriented and chained approach allows the user to quickly get started with composite devices without having to worry about the underlying logic. At the same time, a standard dcd porting interface has been standardised for adapting different USB IPs to achieve ip-oriented programming.
How USB Device Stack is implemented, this video will tell you: https://www.bilibili.com/video/BV1Ef4y1t73d .
USB Device Stack has the following functions:
USB Device Stack resource usage:
| file | FLASH (Byte) | RAM (Byte) |
|---|---|---|
| usbd_core.c | 3045 | 373 |
| usbd_cdc.c | 302 | 20 |
| usbd_msc.c | 2452 | 132 |
| usbd_hid.c | 784 | 201 |
| usbd_audio.c | 438 | 14 |
| usbd_video.c | 402 | 4 |
waiting....
More of USB Device API reference, please visit : USB Device API
More of USB Host API reference, please visit: USB Host API
How to use in RT-Thread package, please visit:RT-Thread package Userguide with usb stack