Skip to content

Commit 6cf2c47

Browse files
authored
Merge pull request #155 from sourcebox/usb-rev
Support for USB 1.0 and 1.0 in UsbRev enum
2 parents 0e30903 + 7fa1008 commit 6cf2c47

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### Added
1111

1212
* `DummyUsbBus` without functionality to allow examples that actually compile (but not run).
13+
* Extended `UsbRev` enum with variants for USB 1.0 and 1.1.
1314

1415
### Changed
1516

src/device.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ const MAX_ENDPOINTS: usize = 16;
3434
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
3535
#[repr(u16)]
3636
pub enum UsbRev {
37+
/// USB 1.0 compliance
38+
Usb100 = 0x100,
39+
/// USB 1.1 compliance
40+
Usb110 = 0x110,
3741
/// USB 2.0 compliance
3842
Usb200 = 0x200,
3943
/// USB 2.1 compliance.

0 commit comments

Comments
 (0)