aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/Cargo.toml2
-rw-r--r--examples/stm32f4/Cargo.toml2
-rw-r--r--examples/stm32h7/Cargo.toml2
-rw-r--r--stm32-metapac-gen/src/assets/build.rs12
-rw-r--r--stm32-metapac/Cargo.toml2
-rw-r--r--stm32-metapac/build.rs2
6 files changed, 6 insertions, 16 deletions
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml
index 65592b1d9..6f8691c3e 100644
--- a/embassy-stm32/Cargo.toml
+++ b/embassy-stm32/Cargo.toml
@@ -42,7 +42,7 @@ defmt-warn = [ ]
42defmt-error = [ ] 42defmt-error = [ ]
43sdmmc-rs = ["embedded-sdmmc"] 43sdmmc-rs = ["embedded-sdmmc"]
44net = ["embassy-net", "vcell"] 44net = ["embassy-net", "vcell"]
45memory_x = ["stm32-metapac/memory_x"] 45memory-x = ["stm32-metapac/memory-x"]
46 46
47# Reexport stm32-metapac at `embassy_stm32::pac`. 47# Reexport stm32-metapac at `embassy_stm32::pac`.
48# This is unstable because semver-minor (non-breaking) releases of embassy-stm32 may major-bump (breaking) the stm32-metapac version. 48# This is unstable because semver-minor (non-breaking) releases of embassy-stm32 may major-bump (breaking) the stm32-metapac version.
diff --git a/examples/stm32f4/Cargo.toml b/examples/stm32f4/Cargo.toml
index eb88ecc1c..84b1e30ee 100644
--- a/examples/stm32f4/Cargo.toml
+++ b/examples/stm32f4/Cargo.toml
@@ -19,7 +19,7 @@ defmt-error = []
19[dependencies] 19[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac", "memory_x"] } 22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac", "memory-x"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 24
25defmt = "0.2.0" 25defmt = "0.2.0"
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml
index 081e45a69..8bc6781e0 100644
--- a/examples/stm32h7/Cargo.toml
+++ b/examples/stm32h7/Cargo.toml
@@ -19,7 +19,7 @@ defmt-error = []
19[dependencies] 19[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi", "net", "memory_x"] } 22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi", "net", "memory-x"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] } 24embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] }
25stm32-metapac = { path = "../../stm32-metapac", features = ["stm32h743zi"] } 25stm32-metapac = { path = "../../stm32-metapac", features = ["stm32h743zi"] }
diff --git a/stm32-metapac-gen/src/assets/build.rs b/stm32-metapac-gen/src/assets/build.rs
index 0fe7c65e9..4110fe485 100644
--- a/stm32-metapac-gen/src/assets/build.rs
+++ b/stm32-metapac-gen/src/assets/build.rs
@@ -9,17 +9,7 @@ fn main() {
9 .unwrap() 9 .unwrap()
10 .to_ascii_lowercase(); 10 .to_ascii_lowercase();
11 11
12 // Put `memory.x` in our output directory and ensure it's 12 #[cfg(feature = "memory-x")]
13 // on the linker search path.
14 let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap());
15 //File::create(out.join("memory.x"))
16 //.unwrap()
17 //.write_all(include_bytes!("memory.x"))
18 //.unwrap();
19
20 println!("HOWDY");
21
22 #[cfg(feature = "memory_x")]
23 println!("cargo:rustc-link-search=src/chips/{}/memory_x/", _chip_name); 13 println!("cargo:rustc-link-search=src/chips/{}/memory_x/", _chip_name);
24 14
25 #[cfg(feature = "rt")] 15 #[cfg(feature = "rt")]
diff --git a/stm32-metapac/Cargo.toml b/stm32-metapac/Cargo.toml
index 692acd8a8..fabd95664 100644
--- a/stm32-metapac/Cargo.toml
+++ b/stm32-metapac/Cargo.toml
@@ -17,7 +17,7 @@ regex = "1.5.4"
17 17
18[features] 18[features]
19rt = ["cortex-m-rt/device"] 19rt = ["cortex-m-rt/device"]
20memory_x = [] 20memory-x = []
21 21
22# BEGIN GENERATED FEATURES 22# BEGIN GENERATED FEATURES
23# Generated by gen_features.py. DO NOT EDIT. 23# Generated by gen_features.py. DO NOT EDIT.
diff --git a/stm32-metapac/build.rs b/stm32-metapac/build.rs
index d922735a1..ca964c9ec 100644
--- a/stm32-metapac/build.rs
+++ b/stm32-metapac/build.rs
@@ -28,7 +28,7 @@ fn main() {
28 chip_name.to_ascii_lowercase() 28 chip_name.to_ascii_lowercase()
29 ); 29 );
30 30
31 #[cfg(feature = "memory_x")] 31 #[cfg(feature = "memory-x")]
32 println!( 32 println!(
33 "cargo:rustc-link-search={}/src/chips/{}/memory_x/", 33 "cargo:rustc-link-search={}/src/chips/{}/memory_x/",
34 out_dir.display(), 34 out_dir.display(),