aboutsummaryrefslogtreecommitdiff
path: root/examples/full-syntax.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-07-27 17:08:42 -0500
committerJorge Aparicio <jorge@japaric.io>2017-07-27 17:08:42 -0500
commitd396da59502ef67f624bb4d8927ff8697232f66c (patch)
tree264e29e59cf4fe119fb82481b9c6949c579e8399 /examples/full-syntax.rs
parentad2a523cf9d39191d54f4dda3c99f22b5bade7de (diff)
make task.$T.enabled optional
and move the logic that differentiates interrupts from exceptions from the crate to the procedural macro logic
Diffstat (limited to 'examples/full-syntax.rs')
-rw-r--r--examples/full-syntax.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/full-syntax.rs b/examples/full-syntax.rs
index 918a2e6..184349b 100644
--- a/examples/full-syntax.rs
+++ b/examples/full-syntax.rs
@@ -37,7 +37,9 @@ app! {
},
TIM2: {
- enabled: true,
+ // tasks are enabled, between `init` and `idle`, by default but they
+ // can start disabled if `false` is specified here
+ enabled: false,
path: tim2,
priority: 1,
resources: [CO_OWNED],