Skip to content

Commit 3ef5e9b

Browse files
Merge pull request #276 from espressif/docs/usb_host_readme
docs(host): Add note about esp-idf compatibility
2 parents 947f4a8 + e9267e2 commit 3ef5e9b

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

host/usb/README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,24 @@
33
[![Component Registry](https://components.espressif.com/components/espressif/usb/badge.svg)](https://components.espressif.com/components/espressif/usb)
44
![maintenance-status](https://img.shields.io/badge/maintenance-actively--developed-brightgreen.svg)
55

6-
This directory contains an implementation of a USB Host Library [USB Host Library](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/usb_host.html).
6+
This component contains an implementation of a [USB Host Library](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/usb_host.html).
77

8-
USB Host Library works underneath the USB Host Class drivers:
8+
In a typical USB application, the USB Host Library works underneath the USB Host Class drivers:
99
- [CDC](../class/cdc/) Communication Device Class (ACM)
1010
- [HID](../class/hid/usb_host_hid/) Human Interface Device
1111
- [MSC](../class/msc/usb_host_msc/) Mass Storage Class
1212
- [UAC](../class/uac/usb_host_uac/) USB Audio Class
1313
- [UVC](../class/uvc/usb_host_uvc/) USB Video Class
1414

15+
## esp-idf compatibility
16+
17+
The USB Host Library is included in [esp-idf](https://github.com/espressif/esp-idf/tree/release/v5.5/components/usb) versions 5.x. Starting with version 6.0, it is no longer part of esp-idf and can only be used as a managed component.
18+
19+
### Bugfixes and new features
20+
**Bugfixes** are backported to all active esp-idf 5.x releases branches. You can find the currently supported release branches [here](https://github.com/espressif/esp-idf?tab=readme-ov-file#esp-idf-release-support-schedule).
21+
22+
**New features** are added only to this component. However, backward compatibility is maintained for all esp-idf service-period branches. This means that users of active 5.x releases can override the version of the library bundled with esp-idf if they need features introduced after esp-idf version 6.0.
23+
1524
## Usage
1625

1726
To include this component in your project:
@@ -38,7 +47,7 @@ dependencies:
3847
#include "usb/usb_host.h"
3948
```
4049

41-
3. Initialize the USB Host stack:
50+
3. Initialize the USB Host Library. The library is a singleton, it must be initialized only once for all class drivers:
4251
```c
4352
usb_host_config_t host_config = {/* configuration */};
4453
usb_host_install(&host_config);
@@ -56,9 +65,3 @@ Refer to following examples, using USB Host library from esp-idf:
5665
- [MSC Host](https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/msc)
5766
- [USB Host Library](https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/usb_host_lib)
5867
- [UVC Host](https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/uvc)
59-
60-
## Supported targets
61-
62-
- ESP32-S2
63-
- ESP32-S3
64-
- ESP32-P4

host/usb/idf_component.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
description: USB Host library
33
version: "1.0.1-rc0"
44
url: https://github.com/espressif/esp-usb/tree/master/host/usb
5+
documentation: "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/usb_host.html"
6+
issues: "https://github.com/espressif/esp-usb/issues"
7+
repository: "https://github.com/espressif/esp-usb.git"
8+
repository_info:
9+
path: "host/usb"
510
dependencies:
611
idf: ">=5.4"
712
targets:

0 commit comments

Comments
 (0)