Skip to content

Commit ef2384f

Browse files
bors[bot]dgoodlad
andauthored
Merge #508
508: Upgrade synopsys-usb-otg to 0.3.0 r=burrbull a=dgoodlad See changes: [v0.2.4..v0.3.0](stm32-rs/synopsys-usb-otg@v0.2.4...v0.3.0) Notably: * [Update cortex-m to 0.7](stm32-rs/synopsys-usb-otg@ce5d5fe) * [Implement force_reset](stm32-rs/synopsys-usb-otg@baac8a1) * [Allow enabling transciever delay to fix USB334x](stm32-rs/synopsys-usb-otg@8704eb3) None of these should be breaking changes. Co-authored-by: David Goodlad <david@goodlad.net>
2 parents 39d5264 + a988154 commit ef2384f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2020
- i2s module don't reuse marker from spi module and define its own.
2121
- `i2s-audio-out` example updated and now use pcm5102 dac module instead one from discovery board.
2222
- extend visibility of gpio/marker to crate since i2s module require it.
23+
- Bump `synopsys-usb-otg` to `0.3.0`
2324

2425
### Added
2526
- example of using i2s in out with rtic and interrupt.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cortex-m-rt = "0.7"
3434
nb = "1"
3535
rand_core = "0.6"
3636
stm32f4 = "0.14.0"
37-
synopsys-usb-otg = { version = "0.2.0", features = ["cortex-m"], optional = true }
37+
synopsys-usb-otg = { version = "0.3.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" }

src/otg_hs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ unsafe impl UsbPeripheral for USB {
5858
}
5959

6060
fn ahb_frequency_hz(&self) -> u32 {
61-
self.hclk.0
61+
self.hclk.raw()
6262
}
6363
}
6464

0 commit comments

Comments
 (0)