From 98d2af9d73da56910c8bb6cb662fbc4d609a704a Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 7 Jul 2021 22:50:59 +0200 Subject: Fixing tests --- examples/type-usage.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'examples/type-usage.rs') diff --git a/examples/type-usage.rs b/examples/type-usage.rs index 9bb7eb8..e5a088f 100644 --- a/examples/type-usage.rs +++ b/examples/type-usage.rs @@ -10,6 +10,17 @@ use rtic::app; mod app { type Test = u32; + #[shared] + struct Shared {} + + #[local] + struct Local {} + + #[init] + fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + (Shared {}, Local {}, init::Monotonics {}) + } + #[task] fn t1(_: t1::Context, _val: Test) {} } -- cgit v1.2.3 From 8f3704378295fe8007290dbddbc1f4946ac599f9 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Thu, 8 Jul 2021 23:18:44 +0200 Subject: Cleanup from review (needs releases to compile) --- examples/type-usage.rs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 examples/type-usage.rs (limited to 'examples/type-usage.rs') diff --git a/examples/type-usage.rs b/examples/type-usage.rs deleted file mode 100644 index e5a088f..0000000 --- a/examples/type-usage.rs +++ /dev/null @@ -1,26 +0,0 @@ -//! examples/type-usage.rs - -#![no_main] -#![no_std] - -use panic_semihosting as _; // panic handler -use rtic::app; - -#[app(device = lm3s6965, dispatchers = [SSI0])] -mod app { - type Test = u32; - - #[shared] - struct Shared {} - - #[local] - struct Local {} - - #[init] - fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { - (Shared {}, Local {}, init::Monotonics {}) - } - - #[task] - fn t1(_: t1::Context, _val: Test) {} -} -- cgit v1.2.3