aboutsummaryrefslogtreecommitdiff
path: root/examples/cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cfg.rs')
-rw-r--r--examples/cfg.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/cfg.rs b/examples/cfg.rs
index 8eeeb2a9..f4848302 100644
--- a/examples/cfg.rs
+++ b/examples/cfg.rs
@@ -11,7 +11,8 @@ use cortex_m_semihosting::hprintln;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
+ #[resources]
struct Resources {
#[cfg(debug_assertions)] // <- `true` when using the `dev` profile
#[init(0)]
@@ -66,4 +67,4 @@ const APP: () = {
fn SSI0();
fn QEI0();
}
-};
+}