Skip to content

Commit

Permalink
Updated USB-related dependencies
Browse files Browse the repository at this point in the history
- Also updated respective examples/usb_serial.rs
- Will fix #369
  • Loading branch information
kebonly committed Jul 24, 2024
1 parent b0cead1 commit 9017c49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ nb = "1.1.0"
num-traits = { version = "0.2.17", default-features = false}
paste = "1.0.14"
rtcc = { version = "0.3.0", optional = true }
stm32-usbd = { version = "0.6.0", optional = true }
stm32-usbd = { version = "0.7.0", optional = true }
stm32f3 = { version = "0.15.1", default-features = false }
void = { version = "1.0.2", default-features = false }

Expand Down
8 changes: 5 additions & 3 deletions examples/usb_serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,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::default()
.serial_number("TEST_STM32_USB")
.manufacturer("Fake Company")
.product("Serial port product")])
.unwrap()
.build();

loop {
Expand Down

0 comments on commit 9017c49

Please sign in to comment.