aboutsummaryrefslogtreecommitdiff
path: root/examples/embassy-stm32g4/build.rs
diff options
context:
space:
mode:
authorcschuhen <47763321+cschuhen@users.noreply.github.com>2024-02-27 21:25:07 +1000
committerGitHub <noreply@github.com>2024-02-27 11:25:07 +0000
commitb1467c62b4b4f61ce53b6572c30920a72550ea45 (patch)
treef2e685383be2203ee96b7172f11f7bfcdb26d52a /examples/embassy-stm32g4/build.rs
parent27985009579e82673dcaf7a6a715fcf50c184863 (diff)
Add example of using Embassy HAL(stm32) with RTIC. (#891)
The RTIC book mentions Embassy+RTIC but gives no examples. fmt. Add feature flag Seems CI does not deal with 2 levels of depth. Forgot to stage. Thumb m arch. Co-authored-by: Corey Schuhen <cschuhen@gmail.com>
Diffstat (limited to 'examples/embassy-stm32g4/build.rs')
-rw-r--r--examples/embassy-stm32g4/build.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/embassy-stm32g4/build.rs b/examples/embassy-stm32g4/build.rs
new file mode 100644
index 0000000..8cd32d7
--- /dev/null
+++ b/examples/embassy-stm32g4/build.rs
@@ -0,0 +1,5 @@
+fn main() {
+ println!("cargo:rustc-link-arg-bins=--nmagic");
+ println!("cargo:rustc-link-arg-bins=-Tlink.x");
+ println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
+}