aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-usb/src/builder.rs')
-rw-r--r--embassy-usb/src/builder.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs
index 9e5aa0574..6c42b07dc 100644
--- a/embassy-usb/src/builder.rs
+++ b/embassy-usb/src/builder.rs
@@ -11,7 +11,7 @@ use crate::{Handler, Interface, UsbDevice, MAX_INTERFACE_COUNT, STRING_INDEX_CUS
11#[cfg_attr(feature = "defmt", derive(defmt::Format))] 11#[cfg_attr(feature = "defmt", derive(defmt::Format))]
12#[non_exhaustive] 12#[non_exhaustive]
13/// Allows Configuring the Bcd USB version below 2.1 13/// Allows Configuring the Bcd USB version below 2.1
14pub enum BcdUsbVersion { 14pub enum UsbVersion {
15 Two = 0x0200, 15 Two = 0x0200,
16 TwoOne = 0x0210, 16 TwoOne = 0x0210,
17} 17}
@@ -27,7 +27,7 @@ pub struct Config<'a> {
27 /// Device BCD USB version. 27 /// Device BCD USB version.
28 /// 28 ///
29 /// Default: `0x0210` ("2.1") 29 /// Default: `0x0210` ("2.1")
30 pub bcd_usb: BcdUsbVersion, 30 pub bcd_usb: UsbVersion,
31 31
32 /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific 32 /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific
33 /// devices that do not conform to any class. 33 /// devices that do not conform to any class.
@@ -122,7 +122,7 @@ impl<'a> Config<'a> {
122 vendor_id: vid, 122 vendor_id: vid,
123 product_id: pid, 123 product_id: pid,
124 device_release: 0x0010, 124 device_release: 0x0010,
125 bcd_usb: BcdUsbVersion::TwoOne, 125 bcd_usb: UsbVersion::TwoOne,
126 manufacturer: None, 126 manufacturer: None,
127 product: None, 127 product: None,
128 serial_number: None, 128 serial_number: None,