Skip to content

Commit b5c1499

Browse files
committed
Documentation updates
1 parent 6021f1c commit b5c1499

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
* Updated documentation, including example code
12+
813
## [0.3.0] - 2023-11-13
914

1015
### Fixed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "usb-device"
3-
description = "Experimental device-side USB stack for embedded devices."
3+
description = "USB stack for embedded devices."
44
version = "0.3.0"
55
edition = "2018"
66
readme = "README.md"
77
keywords = ["no-std", "embedded", "usb"]
88
license = "MIT"
99
authors = ["Matti Virkkunen <[email protected]>"]
10-
repository = "https://github.com/mvirkkunen/usb-device"
10+
repository = "https://github.com/rust-embedded-community/usb-device"
1111

1212
[dependencies]
1313
defmt = { version = "0.3", optional = true }

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
usb-device
22
==========
33

4-
Experimental device-side USB stack for embedded devices in Rust.
5-
6-
This crate is still under development and should not be considered production ready or even USB
7-
compliant.
4+
USB stack for embedded devices in Rust.
85

96
The UsbDevice object represents a composite USB device and is the most important object for
107
application implementors. The UsbDevice combines a number of UsbClasses (either custom ones, or
@@ -39,7 +36,7 @@ Class crates
3936

4037
* [usbd-hid](https://github.com/twitchyliquid64/usbd-hid) [![Crates.io](https://img.shields.io/crates/v/usbd-hid.svg)](https://crates.io/crates/usbd-hid) - HID class
4138
* [usbd-human-device-interface](https://github.com/dlkj/usbd-human-interface-device) [![Crates.io](https://img.shields.io/crates/v/usbd-human-interface-device.svg)](https://crates.io/crates/usbd-human-device-interface) - HID class
42-
* [usbd-serial](https://github.com/mvirkkunen/usbd-serial) [![Crates.io](https://img.shields.io/crates/v/usbd-serial.svg)](https://crates.io/crates/usbd-serial) - CDC-ACM serial port class
39+
* [usbd-serial](https://github.com/rust-embedded-community/usbd-serial) [![Crates.io](https://img.shields.io/crates/v/usbd-serial.svg)](https://crates.io/crates/usbd-serial) - CDC-ACM serial port class
4340
* [usbd-storage](https://github.com/apohrebniak/usbd-storage) [![Crates.io](https://img.shields.io/crates/v/usbd-storage.svg)](https://crates.io/crates/usbd-storage) - (Experimental) Mass storage port class
4441
* [usbd-dfu](https://github.com/vitalyvb/usbd-dfu) [![Crates.io](https://img.shields.io/crates/v/usbd-dfu.svg)](https://crates.io/crates/usbd-dfu) - Device Firmware Upgrade class
4542
* [usbd-picotool-reset](https://github.com/ithinuel/usbd-picotool-reset) [![Crates.io](https://img.shields.io/crates/v/usbd-picotool-reset.svg)](https://crates.io/crates/usbd-picotool-reset) - picotool-reset class

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ pub mod endpoint;
132132
///
133133
/// ``` ignore
134134
/// use usb_device::prelude::*;
135+
/// use usb_device::LangId;
135136
/// use usb_serial; // example class crate (not included)
136137
///
137138
/// // Create the device-specific USB peripheral driver. The exact name and arguments are device
@@ -149,7 +150,9 @@ pub mod endpoint;
149150
/// // product name. If using an existing class, remember to check the class crate documentation
150151
/// // for correct values.
151152
/// let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x5824, 0x27dd))
152-
/// .product(&["Serial port"])
153+
/// .strings(&[StringDescriptors::new(LangID::EN)
154+
/// .product("Serial port")
155+
/// .expect("Failed to set strings")
153156
/// .device_class(usb_serial::DEVICE_CLASS)
154157
/// .build();
155158
///

0 commit comments

Comments
 (0)