diff options
Diffstat (limited to 'examples/periodic.rs')
-rw-r--r-- | examples/periodic.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/periodic.rs b/examples/periodic.rs index 405346e3..2d4c73b5 100644 --- a/examples/periodic.rs +++ b/examples/periodic.rs @@ -13,7 +13,8 @@ const PERIOD: u32 = 8_000_000; // NOTE: does NOT work on QEMU! #[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)] -const APP: () = { +mod app { + #[init(schedule = [foo])] fn init(cx: init::Context) { // omitted: initialization of `CYCCNT` @@ -35,4 +36,4 @@ const APP: () = { extern "C" { fn SSI0(); } -}; +} |