aboutsummaryrefslogtreecommitdiff
path: root/homogeneous/examples/x-init.rs
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-09-01 17:09:25 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-09-01 17:48:53 +0000
commitd2151ccbf935da23d44c183f1ddb185c7ad83bfa (patch)
tree8136a672825057484e201aa8d2a609cf3773672a /homogeneous/examples/x-init.rs
parentd06cf91acc1126e66002f8884b1e7b7a65a9b24a (diff)
downloadrtic-d2151ccbf935da23d44c183f1ddb185c7ad83bfa.tar.gz
rtic-d2151ccbf935da23d44c183f1ddb185c7ad83bfa.tar.zst
rtic-d2151ccbf935da23d44c183f1ddb185c7ad83bfa.zip
Remove all of heterogeneous and homogeneous modules
Diffstat (limited to 'homogeneous/examples/x-init.rs')
-rw-r--r--homogeneous/examples/x-init.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/homogeneous/examples/x-init.rs b/homogeneous/examples/x-init.rs
deleted file mode 100644
index 0574279c..00000000
--- a/homogeneous/examples/x-init.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-//! [compile-pass] Split initialization of late resources
-
-#![deny(unsafe_code)]
-#![deny(warnings)]
-#![no_main]
-#![no_std]
-
-use panic_halt as _;
-
-#[rtic::app(cores = 2, device = homogeneous)]
-const APP: () = {
- struct Resources {
- x: u32,
- y: u32,
- }
-
- #[init(core = 0, late = [x])]
- fn a(_: a::Context) -> a::LateResources {
- a::LateResources { x: 0 }
- }
-
- #[init(core = 1)]
- fn b(_: b::Context) -> b::LateResources {
- b::LateResources { y: 0 }
- }
-};