Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Feb 4, 2025
1 parent b672816 commit 5c85a5d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stm32-hal2"
version = "1.8.5"
version = "1.9.0"
edition = "2021"
authors = ["David O'Connor <[email protected]>"]
description = "Hardware abstraction layer for the STM32 MCUs"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Tested on the following devices:
- Install flash and debug tools: `cargo install flip-link`, `cargo install probe-rs --features cli`.
- Clone the [quickstart repo](https://github.com/David-OConnor/stm32-hal-quickstart1): `git clone https://github.com/David-OConnor/stm32-hal-quickstart1`.
- Change the following lines to match your MCU. Post an issue if you need help with this:
- `Cargo.toml`: `hal = { package = "stm32-hal2", version = "^1.5.0", features = ["l4x3", "l4rt"]}`
- `Cargo.toml`: `hal = { package = "stm32-hal2", version = "^1.9.0", features = ["l4x3", "l4rt"]}`
- `memory.x`: `FLASH` and `RAM` lines
- `.cargo/config.toml`: `runner` and `target` lines.
- Connect your device. Run `cargo run --release` to compile and flash.
Expand Down Expand Up @@ -93,7 +93,7 @@ include a run-time feature, following the template `l4rt`. For example:
```toml
cortex-m = { version = "^0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.2"
hal = { package = "stm32-hal2", version = "^1.5.5", features = ["l4x3", "l4rt"]}
hal = { package = "stm32-hal2", version = "^1.9.0", features = ["l4x3", "l4rt"]}
```

If you need `embedded-hal` traits, include the `embedded_hal` feature.
Expand Down
2 changes: 1 addition & 1 deletion examples/blinky/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ panic-probe = { version = "0.3.0", features = ["print-defmt"] }

cortex-m = { version = "^0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.3"
hal = { package = "stm32-hal2", version = "^1.8.0", features = ["f401", "f4rt"]}
hal = { package = "stm32-hal2", version = "^1.9.0", features = ["f401", "f4rt"]}

# cargo build/run
[profile.dev]
Expand Down
4 changes: 2 additions & 2 deletions examples/blinky/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ f4rt = ["stm32f4/rt"]
Amazing! Let's put that to our own `Cargo.toml`:

```
hal = { package = "stm32-hal2", version = "^0.2.11", features = ["f401", "f4rt"]}
hal = { package = "stm32-hal2", version = "^1.9.0", features = ["f401", "f4rt"]}
```

Great! Now, we've told cargo that we want to install stm32-hal2 with these particular features. Just so that we're on the same page here, here's a complete `Cargo.toml` to this point:
Expand All @@ -108,7 +108,7 @@ edition = "2018"
[dependencies]
cortex-m = "0.7.3"
cortex-m-rt = "0.7.0"
hal = { package = "stm32-hal2", version = "^0.2.11", features = ["f401", "f4rt"]}
hal = { package = "stm32-hal2", version = "^1.9.0", features = ["f401", "f4rt"]}
```

Let's do `cargo build` now, just to make sure that everything is set up correctly. (Mind you, there isn't any meaingful code in `src` directory just yet!)
Expand Down
2 changes: 1 addition & 1 deletion examples/blinky_timer_interrupt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ panic-probe = { version = "0.3.0", features = ["print-defmt"] }

cortex-m = { version = "^0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.0"
hal = { package = "stm32-hal2", version = "^1.8.0", features = ["h735", "h7rt"]}
hal = { package = "stm32-hal2", version = "^1.9.0", features = ["h735", "h7rt"]}
cortex-m-rtic = "^1.1.3"

# cargo build/run
Expand Down
2 changes: 1 addition & 1 deletion examples/conductivity_module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/main.rs"
[dependencies]
cortex-m = { version = "^0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = { version = "0.7.0", optional = true }
hal = { package = "stm32-hal2", version = "^1.8.0", features = ["l4x3", "l4rt"] }
hal = { package = "stm32-hal2", version = "^1.9.0", features = ["l4x3", "l4rt"] }
defmt = "0.3.0"
defmt-rtt = "0.4.0"
panic-probe = { version = "0.4.0", features = ["print-defmt"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/syntax_overview/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cortex-m-rt = "0.7.3"
# and if this program is meant to be run and flashed directly (ie it's not a library),
# the runtime feature for that
# family, eg `l4rt`.
hal = { package = "stm32-hal2", version = "^1.8.0", features = ["l4x3", "l4rt"]}
hal = { package = "stm32-hal2", version = "^1.9.0", features = ["l4x3", "l4rt"]}

# cargo build/run
[profile.dev]
Expand Down

0 comments on commit 5c85a5d

Please sign in to comment.