Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ version = "0.2.6"
features = ["unproven"]

[dependencies.stm32-usbd]
version = "0.6.0"
version = "0.7.0"
optional = true

[dependencies.synopsys-usb-otg]
Expand Down Expand Up @@ -117,8 +117,8 @@ panic-halt = "0.2.0"
panic-semihosting = "0.5.0"
cortex-m-semihosting = "0.3.5"
cortex-m-rt = "0.7"
usb-device = "0.2.3"
usbd-serial = "0.1.0"
usb-device = "0.3.0"
usbd-serial = "0.2.2"
heapless = "0.5"

[dev-dependencies.cortex-m-rtic]
Expand Down
8 changes: 5 additions & 3 deletions examples/usb_serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ fn main() -> ! {
let mut serial = SerialPort::new(&usb_bus);

let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x16c0, 0x27dd))
.manufacturer("Fake company")
.product("Serial port")
.serial_number("TEST")
.device_class(USB_CLASS_CDC)
.strings(&[StringDescriptors::new(0x1234.into())
.manufacturer("Fake company")
.product("Serial port")
.serial_number("TEST")])
.unwrap()
.build();

loop {
Expand Down