Skip to content

Commit

Permalink
Support for USB 1.0 and 1.0 in UsbRev enum
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcebox committed Oct 11, 2024
1 parent 0e30903 commit 7fa1008
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added

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

### Changed

Expand Down
4 changes: 4 additions & 0 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ const MAX_ENDPOINTS: usize = 16;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[repr(u16)]
pub enum UsbRev {
/// USB 1.0 compliance
Usb100 = 0x100,
/// USB 1.1 compliance
Usb110 = 0x110,
/// USB 2.0 compliance
Usb200 = 0x200,
/// USB 2.1 compliance.
Expand Down

0 comments on commit 7fa1008

Please sign in to comment.