Skip to content

Commit 10a2df4

Browse files
authored
readme: consolidate HAL README and top level README
1 parent f8e46e4 commit 10a2df4

File tree

3 files changed

+21
-99
lines changed

3 files changed

+21
-99
lines changed

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![nightly-docs](https://img.shields.io/badge/docs-nightly-blue)](https://stm32-rs.github.io/stm32wlxx-hal/stm32wlxx_hal/index.html)
66
[![crates.io](https://img.shields.io/crates/v/stm32wlxx-hal.svg)](https://crates.io/crates/stm32wlxx-hal)
77
![license](https://img.shields.io/crates/l/stm32wlxx-hal?color=green)
8+
![MSRV](https://img.shields.io/badge/MSRV-1.56-informational)
89

910
Embedded rust HAL (hardware abstraction layer) for the STM32WL series.
1011

@@ -26,33 +27,38 @@ This is still in development, the code that exists today covers basic usage of:
2627

2728
## Usage
2829

29-
See [hal/README.md](hal/README.md).
30+
```toml
31+
[dependencies.stm32wlxx-hal]
32+
version = "0.2.0"
33+
features = [
34+
# use exactly one of the following depending on your target hardware
35+
"stm32wl5x_cm0p",
36+
"stm32wl5x_cm4",
37+
"stm32wle5",
38+
# optional: use the cortex-m-rt interrupt interface
39+
"rt",
40+
# optional: use defmt
41+
"defmt",
42+
]
43+
```
3044

3145
## Examples
3246

33-
All examples run on the NUCLEO-WL55JC2.
34-
Examples are located in the `examples` crate.
35-
The arguments got long for this, so a `run-ex` cargo alias is provided.
47+
All examples run on the NUCLEO-WL55JC2. Examples are located in the `examples` crate. The arguments got long for this, so a `run-ex` cargo alias is provided.
3648

3749
```bash
3850
cargo run-ex gpio-blink
3951
```
4052

41-
The on-target tests are also excellent reference material,
42-
they are automatically tested for every commit and are guaranteed to work.
53+
The on-target tests are also excellent reference material.
4354

4455
### System Level Example
4556

46-
The testsuites and examples are a good starting point,
47-
but they demonstrate features independent of each-other.
48-
A system-level example using multiple features simultaneously is provided in a
49-
separate repo:
50-
[stm32wl-lightswitch-demo](https://github.com/newAM/stm32wl-lightswitch-demo)
57+
The testsuites and examples are a good starting point, but they demonstrate features independent of each-other. A system-level example using multiple features simultaneously is provided in a separate repo: [stm32wl-lightswitch-demo](https://github.com/newAM/stm32wl-lightswitch-demo)
5158

5259
## Unit Tests
5360

54-
Off-target unit tests use the built-in cargo framework.
55-
You must specify the target device as a feature.
61+
Off-target unit tests use the built-in cargo framework. You must specify the target device as a feature.
5662

5763
```bash
5864
cargo test --features stm32wl5x_cm4

hal/Cargo.toml

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

66
version = "0.2.0" # update BSP versions, HAL depdendency version, and README
77
authors = ["Alex Martens <[email protected]>"]
88
edition = "2021"
9-
rust-version = "1.56" # update MSRV in CI, change BSPs to match
9+
rust-version = "1.56" # update MSRV in CI, BSPs, and shield in README
1010
license = "MIT OR Apache-2.0"
1111
keywords = ["arm", "cortex-m", "stm32", "hal"]
1212
categories = ["embedded", "hardware-support", "no-std"]

hal/README.md

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)