aboutsummaryrefslogtreecommitdiff
path: root/examples/lock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lock.rs')
-rw-r--r--examples/lock.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/lock.rs b/examples/lock.rs
index 5e3bce25..6ce61dc6 100644
--- a/examples/lock.rs
+++ b/examples/lock.rs
@@ -10,7 +10,8 @@ use lm3s6965::Interrupt;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
+ #[resources]
struct Resources {
#[init(0)]
shared: u32,
@@ -59,4 +60,4 @@ const APP: () = {
fn gpioc(_: gpioc::Context) {
hprintln!("C").unwrap();
}
-};
+}