Skip to content

Commit cf910da

Browse files
committed
generate enums for other families
1 parent 1f1a238 commit cf910da

Some content is hidden

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

71 files changed

+48483
-322
lines changed

.cargo/config.toml

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
[target.thumbv6m-none-eabi]
2+
rustflags = [
3+
"-C", "link-arg=-Tlink.x",
4+
"-C", "link-arg=-Tdefmt.x",
5+
]
6+
7+
[target.thumbv7m-none-eabi]
8+
rustflags = [
9+
"-C", "link-arg=-Tlink.x",
10+
"-C", "link-arg=-Tdefmt.x",
11+
]
12+
13+
[target.thumbv7em-none-eabi]
14+
rustflags = [
15+
"-C", "link-arg=-Tlink.x",
16+
"-C", "link-arg=-Tdefmt.x",
17+
]
18+
119
[target.thumbv7em-none-eabihf]
220
runner = 'probe-rs run --chip STM32F411CEUx'
321
rustflags = [
@@ -10,6 +28,12 @@ rustflags = [
1028
#"-C", "link-arg=--nmagic",
1129
]
1230

31+
[target.thumbv8m.main-none-eabihf]
32+
rustflags = [
33+
"-C", "link-arg=-Tlink.x",
34+
"-C", "link-arg=-Tdefmt.x",
35+
]
36+
1337
[build]
1438
target = "thumbv7em-none-eabihf"
1539

Cargo.toml

+376-1
Large diffs are not rendered by default.

build.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ fn main() {
2424
let _chip_name = match env::vars()
2525
.map(|(a, _)| a)
2626
.filter(|x| {
27-
x.starts_with("CARGO_FEATURE_STM32F4") || x.starts_with("CARGO_FEATURE_STM32F7")
27+
x.starts_with("CARGO_FEATURE_STM32F3")
28+
|| x.starts_with("CARGO_FEATURE_STM32F4")
29+
|| x.starts_with("CARGO_FEATURE_STM32F7")
30+
|| x.starts_with("CARGO_FEATURE_STM32L4")
2831
})
2932
.get_one()
3033
{

src/adc.rs

-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ use core::fmt;
141141

142142
pub mod config;
143143

144-
#[cfg(feature = "f2")]
145-
mod f2;
146-
147144
#[cfg(feature = "f4")]
148145
mod f4;
149146

0 commit comments

Comments
 (0)