aboutsummaryrefslogtreecommitdiff
path: root/examples/t-cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/t-cfg.rs')
-rw-r--r--examples/t-cfg.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs
index b6c9e472..3deb107c 100644
--- a/examples/t-cfg.rs
+++ b/examples/t-cfg.rs
@@ -6,7 +6,8 @@
use panic_halt as _;
#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
-const APP: () = {
+mod app {
+ #[resources]
struct Resources {
#[cfg(never)]
#[init(0)]
@@ -52,4 +53,4 @@ const APP: () = {
fn SSI0();
fn QEI0();
}
-};
+}