Skip to content

Commit a8d593b

Browse files
authored
treewide: stm32wl-hal -> stm32wlxx-hal
This aligns the crate name with those in the stm32-rs organization.
1 parent 3fc796e commit a8d593b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+513
-513
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# stm32wl-hal
1+
# stm32wlxx-hal
22

3-
[![CI](https://github.com/newAM/stm32wl-hal/workflows/CI/badge.svg)](https://github.com/newAM/stm32wl-hal/actions?query=branch%3Amain)
4-
[![docs](https://img.shields.io/badge/docs-gh--pages-blue)](https://newam.github.io/stm32wl-hal/stm32wl_hal/index.html)
3+
[![CI](https://github.com/newAM/stm32wlxx-hal/workflows/CI/badge.svg)](https://github.com/newAM/stm32wlxx-hal/actions?query=branch%3Amain)
4+
[![docs](https://img.shields.io/badge/docs-gh--pages-blue)](https://newam.github.io/stm32wlxx-hal/stm32wlxx_hal/index.html)
55

66
Embedded rust HAL (hardware abstraction layer) for the STM32WL series.
77

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmt = "0.2"
1010
defmt-rtt = "0.2"
1111
cortex-m-rt = "0.6"
1212
panic-probe = { version = "0.2", features = ["print-defmt" ] }
13-
stm32wl-hal = { path = "../hal", features = ["stm32wl5x_cm4", "rt", "defmt"] }
13+
stm32wlxx-hal = { path = "../hal", features = ["stm32wl5x_cm4", "rt", "defmt"] }
1414
nucleo-wl55jc-bsp = { path = "../nucleo-wl55jc-bsp" }
1515

1616
[features]

examples/examples/clock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use defmt_rtt as _; // global logger
77
use panic_probe as _; // panic handler
8-
use stm32wl_hal::{self as hal, pac, rcc};
8+
use stm32wlxx_hal::{self as hal, pac, rcc};
99

1010
#[hal::cortex_m_rt::entry]
1111
fn main() -> ! {

examples/examples/gpio-blink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use defmt_rtt as _; // global logger
77
use panic_probe as _; // panic handler
8-
use stm32wl_hal::{
8+
use stm32wlxx_hal::{
99
self as hal,
1010
cortex_m::{self, delay::Delay},
1111
gpio::{pins, Output, PinState, PortB},

examples/examples/gpio-button-irq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use defmt_rtt as _; // global logger
77
use panic_probe as _; // panic handler
8-
use stm32wl_hal::{
8+
use stm32wlxx_hal::{
99
self as hal, cortex_m,
1010
gpio::{pins, Exti, ExtiTrg, Input, PortC, Pull},
1111
pac::{self, interrupt},

examples/examples/gpio-button.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use defmt_rtt as _; // global logger
77
use panic_probe as _; // panic handler
8-
use stm32wl_hal::{
8+
use stm32wlxx_hal::{
99
self as hal, cortex_m,
1010
gpio::{pins, Input, PinState, PortC, Pull},
1111
pac,

examples/examples/info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use defmt_rtt as _; // global logger
77
use panic_probe as _; // panic handler
8-
use stm32wl_hal::{self as hal, info};
8+
use stm32wlxx_hal::{self as hal, info};
99

1010
#[hal::cortex_m_rt::entry]
1111
fn main() -> ! {

hal/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "stm32wl-hal"
2+
name = "stm32wlxx-hal"
33
description = "Hardware abstraction layer for the STM32WL series microcontrollers."
44
readme = "README.md"
55

@@ -9,7 +9,7 @@ edition = "2021"
99
license = "MIT"
1010
keywords = ["arm", "cortex-m", "stm32", "hal"]
1111
categories = ["embedded", "hardware-support", "no-std"]
12-
repository = "https://github.com/newAM/stm32wl-hal"
12+
repository = "https://github.com/newAM/stm32wlxx-hal"
1313

1414
[features]
1515
stm32wl5x_cm0p = ["stm32wl/stm32wl5x_cm0p"]

hal/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This crate is not yet published to crates.io, see issue [#149] for details.
66
Until then please pin the version you use.
77

88
```toml
9-
[dependencies.stm32wl-hal]
10-
git = "https://github.com/newAM/stm32wl-hal.git"
9+
[dependencies.stm32wlxx-hal]
10+
git = "https://github.com/newAM/stm32wlxx-hal.git"
1111
rev = "" # put a specific git commit hash here
1212
features = [
1313
# use exactly one of the following depending on your target hardware
@@ -21,7 +21,7 @@ features = [
2121
]
2222

2323
# include cortex-m-rt directly in your crate if you need interrupts
24-
# use the interrupt macro from the hal with `use stm32wl_hal::pac::interrupt;`
24+
# use the interrupt macro from the hal with `use stm32wlxx_hal::pac::interrupt;`
2525
# DO NOT use the interrupt macro from cortex-m-rt, it will fail to compile
2626
[dependencies]
2727
cortex-m-rt = "0.6"
@@ -31,7 +31,7 @@ cortex-m-rt = "0.6"
3131
or `stm32wl` (the PAC) directly, these are re-exported by the hal.
3232

3333
```rust
34-
use stm32wl_hal as hal;
34+
use stm32wlxx_hal as hal;
3535

3636
use hal::cortex_m;
3737
use hal::cortex_m_rt; // requires "rt" feature
@@ -64,7 +64,7 @@ simple enough. That being said if you find somthing missing it is likely
6464
because this crate is incomplete, and not an intentional design decision.
6565

6666
```rust
67-
use stm32wl_hal as hal;
67+
use stm32wlxx_hal as hal;
6868
use hal::pac;
6969

7070
use hal::{aes::Aes, pka::Pka};
@@ -97,5 +97,5 @@ this is not consistent (see [#78])
9797

9898
[stm32-rs]: https://github.com/stm32-rs/stm32-rs
9999
[svd2rust]: https://github.com/rust-embedded/svd2rust
100-
[#78]: https://github.com/newAM/stm32wl-hal/issues/78
101-
[#149]: https://github.com/newAM/stm32wl-hal/issues/149
100+
[#78]: https://github.com/newAM/stm32wlxx-hal/issues/78
101+
[#149]: https://github.com/newAM/stm32wlxx-hal/issues/149

0 commit comments

Comments
 (0)