diff --git a/CHANGELOG.md b/CHANGELOG.md index d3ffd694..b565406c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.11.0] - 2025-09-09 + ### Breaking changes - Relax pin type generics for `Serial`, `I2c`, `Spi`, `Can`, `Qei`, `PwmInput`. [#462] [#516] @@ -418,7 +420,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - First tagged version -[Unreleased]: https://github.com/stm32-rs/stm32f1xx-hal/compare/v0.10.0...HEAD +[Unreleased]: https://github.com/stm32-rs/stm32f1xx-hal/compare/v0.11.0...HEAD +[v0.11.0]: https://github.com/stm32-rs/stm32f1xx-hal/compare/v0.10.0...v0.11.0 [v0.10.0]: https://github.com/stm32-rs/stm32f1xx-hal/compare/v0.9.0...v0.10.0 [v0.9.0]: https://github.com/stm32-rs/stm32f1xx-hal/compare/v0.8.0...v0.9.0 [v0.8.0]: https://github.com/stm32-rs/stm32f1xx-hal/compare/v0.7.0...v0.8.0 diff --git a/Cargo.toml b/Cargo.toml index 5a6b0e93..4edab856 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ name = "stm32f1xx-hal" repository = "https://github.com/stm32-rs/stm32f1xx-hal" documentation = "https://docs.rs/stm32f1xx-hal" readme = "README.md" -version = "0.10.0" +version = "0.11.0" [package.metadata.docs.rs] features = ["stm32f103", "rtic", "high"] @@ -23,7 +23,7 @@ default-target = "x86_64-unknown-linux-gnu" [dependencies] defmt = { version = "1.0", optional = true } cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] } -cortex-m-rt = "0.7.3" +cortex-m-rt = "0.7.5" nb = "1.1" embedded-dma = "0.2.0" bxcan = "0.8.0" @@ -53,7 +53,7 @@ version = "1.0" version = "0.6.1" [dependencies.stm32-usbd] -version = "0.7.0" +version = "0.8.0" optional = true [dev-dependencies] @@ -62,10 +62,10 @@ panic-semihosting = "0.6.0" panic-itm = "0.4.2" panic-probe = "1.0" rtt-target = "0.6.1" -cortex-m-rtic = "1.1.3" +cortex-m-rtic = "1.1.4" cortex-m-semihosting = "0.5.0" -heapless = "0.8.0" -mfrc522 = { version = "0.7.0", features = ["eh02"] } +heapless = "0.9.1" +mfrc522 = { version = "0.8.0", features = ["eh02"] } mpu9250 = "0.25.0" usb-device = "0.3.2" usbd-serial = "0.2.2" diff --git a/README.md b/README.md index eaa2bfaf..994f8b6e 100644 --- a/README.md +++ b/README.md @@ -47,15 +47,15 @@ You also need to add some dependencies to your `Cargo.toml`: ```toml [dependencies] -embedded-hal = "0.2.7" +embedded-hal = "1.0" nb = "1" -cortex-m = "0.7.6" -cortex-m-rt = "0.7.1" +cortex-m = "0.7.7" +cortex-m-rt = "0.7.5" # Panic behaviour, see https://crates.io/keywords/panic-impl for alternatives -panic-halt = "0.2.0" +panic-halt = "1.0.0" [dependencies.stm32f1xx-hal] -version = "0.10.0" +version = "0.11.0" features = ["rt", "stm32f103", "medium"] ``` diff --git a/src/usb.rs b/src/usb.rs index 77a15d13..93c7bb62 100644 --- a/src/usb.rs +++ b/src/usb.rs @@ -6,7 +6,7 @@ use crate::pac::USB; use crate::rcc::{Enable, Reset}; -use stm32_usbd::UsbPeripheral; +use stm32_usbd::{MemoryAccess, UsbPeripheral}; use crate::gpio::gpioa::{PA11, PA12}; use crate::gpio::{Floating, Input}; @@ -25,7 +25,7 @@ unsafe impl UsbPeripheral for Peripheral { const DP_PULL_UP_FEATURE: bool = false; const EP_MEMORY: *const () = 0x4000_6000 as _; const EP_MEMORY_SIZE: usize = 512; - const EP_MEMORY_ACCESS_2X16: bool = false; + const EP_MEMORY_ACCESS: MemoryAccess = MemoryAccess::Word16x1; fn enable() { unsafe {