Skip to content

Commit 9abb8f8

Browse files
authored
Merge pull request #699 from hacknus/master
update synopsys-usb-otg to v0.4
2 parents dc2e070 + 570aeee commit 9abb8f8

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased]
99

1010
- Added an example to show how to do DMA with UART (Rx only) [#698]
11+
- Updated `synopsys-usb-otg` to `0.4.0`
1112

1213
### Fixed
1314

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cortex-m-rt = "0.7.3"
3434
nb = "1.1"
3535
rand_core = "0.6.4"
3636
stm32f4 = "0.15.1"
37-
synopsys-usb-otg = { version = "0.3.2", features = ["cortex-m"], optional = true }
37+
synopsys-usb-otg = { version = "0.4.0", features = ["cortex-m"], optional = true }
3838
sdio-host = { version = "0.6.0", optional = true }
3939
embedded-dma = "0.2.0"
4040
bare-metal = { version = "1" }
@@ -72,8 +72,8 @@ heapless = "0.7.16"
7272
panic-halt = "0.2.0"
7373
ssd1306 = "0.7.1"
7474
embedded-graphics = "0.7.1"
75-
usb-device = "0.2.9"
76-
usbd-serial = "0.1.1"
75+
usb-device = "0.3.1"
76+
usbd-serial = "0.2.0"
7777
micromath = "2"
7878
cortex-m-rtic = { version = "1.1.4", features = ["test-critical-section"] }
7979
dwt-systick-monotonic = "1.1"

examples/rtic-usb-cdc-echo.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ mod app {
7373
unsafe { USB_BUS.as_ref().unwrap() },
7474
UsbVidPid(0x16c0, 0x27dd),
7575
)
76-
.manufacturer("rust embedded")
77-
.product("usb echo server")
78-
.serial_number("4242")
7976
.device_class(usbd_serial::USB_CLASS_CDC)
77+
.strings(&[StringDescriptors::default()
78+
.manufacturer("Fake Company")
79+
.product("Product")
80+
.serial_number("TEST")])
81+
.unwrap()
8082
.build();
8183

8284
(

examples/usb-serial-irq.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ fn main() -> ! {
5050

5151
*G_USB_DEVICE.borrow(cs).borrow_mut() = Some(
5252
UsbDeviceBuilder::new(usb_bus, UsbVidPid(0x16c0, 0x27dd))
53-
.manufacturer("Fake company")
54-
.product("Serial port")
55-
.serial_number("TEST")
5653
.device_class(usbd_serial::USB_CLASS_CDC)
54+
.strings(&[StringDescriptors::default()
55+
.manufacturer("Fake Company")
56+
.product("Product")
57+
.serial_number("TEST")])
58+
.unwrap()
5759
.build(),
5860
);
5961
});

examples/usb-serial-poll.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ fn main() -> ! {
3838
let mut serial = usbd_serial::SerialPort::new(&usb_bus);
3939

4040
let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x16c0, 0x27dd))
41-
.manufacturer("Fake company")
42-
.product("Serial port")
43-
.serial_number("TEST")
4441
.device_class(usbd_serial::USB_CLASS_CDC)
42+
.strings(&[StringDescriptors::default()
43+
.manufacturer("Fake Company")
44+
.product("Product")
45+
.serial_number("TEST")])
46+
.unwrap()
4547
.build();
4648

4749
loop {

0 commit comments

Comments
 (0)