Bump embassy-usb version (#3848)

* Bump `embassy-usb` version

Signed-off-by: Haobo Gu <haobogu@outlook.com>

* Add `embassy-usb` update to CHANGELOG.md

Signed-off-by: Haobo Gu <haobogu@outlook.com>

---------

Signed-off-by: Haobo Gu <haobogu@outlook.com>
This commit is contained in:
HaoboGu 2025-07-22 21:07:37 +08:00 committed by GitHub
parent 3adadced67
commit bccd9d770a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 5 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- The `rng` module has been rewritten (#3829)
- Update `embassy-usb` to v0.5.0 (#3848)
### Fixed

View File

@ -50,8 +50,8 @@ procmacros = { version = "0.19.0", package = "esp-hal-procmacros",
# Dependencies that are optional because they are used by unstable drivers.
# They are needed when using the `unstable` feature.
digest = { version = "0.10.7", default-features = false, optional = true }
embassy-usb-driver = { version = "0.1.0", optional = true }
embassy-usb-synopsys-otg = { version = "0.2.0", optional = true }
embassy-usb-driver = { version = "0.2.0", optional = true }
embassy-usb-synopsys-otg = { version = "0.3.0", optional = true }
embedded-can = { version = "0.4.1", optional = true }
esp-synopsys-usb-otg = { version = "0.4.2", optional = true }
nb = { version = "1.1.0", optional = true }

View File

@ -213,21 +213,23 @@ pub mod asynch {
fn alloc_endpoint_in(
&mut self,
ep_type: EndpointType,
ep_addr: Option<EndpointAddress>,
max_packet_size: u16,
interval_ms: u8,
) -> Result<Self::EndpointIn, EndpointAllocError> {
self.inner
.alloc_endpoint_in(ep_type, max_packet_size, interval_ms)
.alloc_endpoint_in(ep_type, ep_addr, max_packet_size, interval_ms)
}
fn alloc_endpoint_out(
&mut self,
ep_type: EndpointType,
ep_addr: Option<EndpointAddress>,
max_packet_size: u16,
interval_ms: u8,
) -> Result<Self::EndpointOut, EndpointAllocError> {
self.inner
.alloc_endpoint_out(ep_type, max_packet_size, interval_ms)
.alloc_endpoint_out(ep_type, ep_addr, max_packet_size, interval_ms)
}
fn start(self, control_max_packet_size: u16) -> (Self::Bus, Self::ControlPipe) {

View File

@ -16,7 +16,7 @@ embassy-futures = "0.1.1"
embassy-net = { version = "0.6.0", features = [ "tcp", "udp", "dhcpv4", "medium-ethernet"] }
embassy-sync = "0.6.2"
embassy-time = "0.4.0"
embassy-usb = { version = "0.4.0", default-features = false }
embassy-usb = { version = "0.5.0", default-features = false }
embedded-hal-async = "1.0.0"
embedded-io = { version = "0.6.1", default-features = false }
embedded-io-async = "0.6.1"