aboutsummaryrefslogtreecommitdiff
path: root/examples/t-resource.rs
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2020-04-22 10:58:14 +0000
committerHenrik Tjäder <henrik@tjaders.com>2020-09-25 14:29:34 +0000
commit8df2ec11b0ee3209678dcc1b1a5baa479fa1dfe5 (patch)
tree832c0e11695545449904835f2fb8f57bf086407a /examples/t-resource.rs
parent4d61437bb4debea5adc578ee072bff3619d8077b (diff)
Examples using mod instead of const
Diffstat (limited to 'examples/t-resource.rs')
-rw-r--r--examples/t-resource.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/t-resource.rs b/examples/t-resource.rs
index 81ba185..0864a8a 100644
--- a/examples/t-resource.rs
+++ b/examples/t-resource.rs
@@ -8,7 +8,7 @@
use panic_halt as _;
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod APP {
struct Resources {
#[init(0)]
o1: u32, // init
@@ -86,4 +86,4 @@ const APP: () = {
// no `Mutex` proxy when co-owned by cooperative (same priority) tasks
let _: &mut u32 = c.resources.s2;
}
-};
+}