aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32/build.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-05-23 01:15:22 +0000
committerGitHub <[email protected]>2023-05-23 01:15:22 +0000
commit1fdde8f03fc8b98c7fdb91a94e2dfd47bcbc24cb (patch)
treeb28d26b4a54ecccce2de498e5106fc55be631061 /tests/stm32/build.rs
parentab7d129e152a9450b2a6445397365bcb3a3ce183 (diff)
parent64092169e3133b572626c1efa106963139a63b3f (diff)
Merge #1457
1457: TL Mbox read and write for stm32wb r=xoviat a=OueslatiGhaith Hello, This pull request is related to #1397 and #1401, inspired by #24, built upon the work done in #1405 and #1424, and was tested on an stm32wb55rg. This pull request aims to add read and write functionality to the TL mailbox for stm32wb microcontrollers Co-authored-by: goueslati <[email protected]> Co-authored-by: xoviat <[email protected]>
Diffstat (limited to 'tests/stm32/build.rs')
-rw-r--r--tests/stm32/build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stm32/build.rs b/tests/stm32/build.rs
index 7ae311778..ca76b70bb 100644
--- a/tests/stm32/build.rs
+++ b/tests/stm32/build.rs
@@ -12,6 +12,9 @@ fn main() -> Result<(), Box<dyn Error>> {
12 if cfg!(any(feature = "stm32f103c8", feature = "stm32c031c6")) { 12 if cfg!(any(feature = "stm32f103c8", feature = "stm32c031c6")) {
13 println!("cargo:rustc-link-arg-bins=-Tlink.x"); 13 println!("cargo:rustc-link-arg-bins=-Tlink.x");
14 println!("cargo:rerun-if-changed=link.x"); 14 println!("cargo:rerun-if-changed=link.x");
15 } else if cfg!(feature = "stm32wb55rg") {
16 println!("cargo:rustc-link-arg-bins=-Tlink.x");
17 fs::write(out.join("memory.x"), include_bytes!("memory_ble.x")).unwrap();
15 } else { 18 } else {
16 println!("cargo:rustc-link-arg-bins=-Tlink_ram.x"); 19 println!("cargo:rustc-link-arg-bins=-Tlink_ram.x");
17 println!("cargo:rerun-if-changed=link_ram.x"); 20 println!("cargo:rerun-if-changed=link_ram.x");