You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Embedded rust HAL (hardware abstraction layer) for the STM32WL series.
10
11
@@ -26,33 +27,38 @@ This is still in development, the code that exists today covers basic usage of:
26
27
27
28
## Usage
28
29
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
+
```
30
44
31
45
## Examples
32
46
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.
36
48
37
49
```bash
38
50
cargo run-ex gpio-blink
39
51
```
40
52
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.
43
54
44
55
### System Level Example
45
56
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
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)
51
58
52
59
## Unit Tests
53
60
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.
0 commit comments