aboutsummaryrefslogtreecommitdiff
path: root/ui/single/task-priority-too-high.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/single/task-priority-too-high.rs')
-rw-r--r--ui/single/task-priority-too-high.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/single/task-priority-too-high.rs b/ui/single/task-priority-too-high.rs
index 539c3f5d..caa7b8ee 100644
--- a/ui/single/task-priority-too-high.rs
+++ b/ui/single/task-priority-too-high.rs
@@ -1,11 +1,11 @@
#![no_main]
-use rtic::app;
-
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
#[init]
- fn init(_: init::Context) {}
+ fn init(_: init::Context) -> init::LateResources {
+ init::LateResources {}
+ }
#[task(binds = GPIOA, priority = 1)]
fn gpioa(_: gpioa::Context) {}
@@ -35,4 +35,4 @@ const APP: () = {
// this value is too high!
#[task(binds = I2C0, priority = 9)]
fn i2c0(_: i2c0::Context) {}
-};
+}