aboutsummaryrefslogtreecommitdiff
path: root/examples/t-schedule.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/t-schedule.rs')
-rw-r--r--examples/t-schedule.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs
index 3854aad3..ef2eb080 100644
--- a/examples/t-schedule.rs
+++ b/examples/t-schedule.rs
@@ -9,7 +9,7 @@ use panic_halt as _;
use rtic::cyccnt::{Instant, U32Ext as _};
#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
-const APP: () = {
+mod app {
#[init(schedule = [foo, bar, baz])]
fn init(c: init::Context) {
let _: Result<(), ()> = c.schedule.foo(c.start + 10.cycles());
@@ -61,4 +61,4 @@ const APP: () = {
extern "C" {
fn SSI0();
}
-};
+}