Skip to content

Commit

Permalink
Merge pull request #3601 from LegitCamper/custom_bcdusb_version
Browse files Browse the repository at this point in the history
Expose UsbVersion
  • Loading branch information
Dirbaio authored Dec 3, 2024
2 parents 4acc0f8 + 0b7f9d8 commit 02ba6cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions embassy-usb/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ use crate::{Handler, Interface, UsbDevice, MAX_INTERFACE_COUNT, STRING_INDEX_CUS
#[non_exhaustive]
/// Allows Configuring the Bcd USB version below 2.1
pub enum UsbVersion {
/// Usb version 2.0
Two = 0x0200,
/// Usb version 2.1
TwoOne = 0x0210,
}

Expand Down
2 changes: 1 addition & 1 deletion embassy-usb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod config {
use embassy_futures::select::{select, Either};
use heapless::Vec;

pub use crate::builder::{Builder, Config, FunctionBuilder, InterfaceAltBuilder, InterfaceBuilder};
pub use crate::builder::{Builder, Config, FunctionBuilder, InterfaceAltBuilder, InterfaceBuilder, UsbVersion};
use crate::config::{MAX_HANDLER_COUNT, MAX_INTERFACE_COUNT};
use crate::control::{InResponse, OutResponse, Recipient, Request, RequestType};
use crate::descriptor::{descriptor_type, lang_id};
Expand Down

0 comments on commit 02ba6cd

Please sign in to comment.